From d3c26bc30cd5c85635df8014a550b453ec0304be Mon Sep 17 00:00:00 2001 From: Dirk Best Date: Thu, 14 May 2009 17:10:11 +0200 Subject: Minor change support for dwpage.php darcs-hash:20090514151011-ac091-397ed299016a72545412f3d0cfbc534a65a10992.gz --- bin/dwpage.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/dwpage.php b/bin/dwpage.php index 4f577d633..f27a67c4c 100755 --- a/bin/dwpage.php +++ b/bin/dwpage.php @@ -40,6 +40,7 @@ function usage($action) { OPTIONS -h, --help=: get help -f: force obtaining a lock for the page (generally bad idea) + -t, trivial: minor change -m (required): Summary message describing the change "; break; @@ -189,11 +190,12 @@ $SYSTEM_ID = '127.0.0.1'; #------------------------------------------------------------------------------ $OPTS = Doku_Cli_Opts::getOptions( __FILE__, - 'h::fm:u:s:', + 'h::fm:u:s:t', array( 'help==', 'user=', 'system=', + 'trivial', ) ); @@ -313,7 +315,7 @@ switch ( $OPTS->arg(0) ) { obtainLock($WIKI_ID); - saveWikiText($WIKI_ID, file_get_contents($TARGET_FN), $OPTS->get('m')); + saveWikiText($WIKI_ID, file_get_contents($TARGET_FN), $OPTS->get('m'), $OPTS->has('t')); clearLock($WIKI_ID); -- cgit v1.2.3