diff options
author | Dirk Best <startaq@gmail.com> | 2009-05-14 17:10:11 +0200 |
---|---|---|
committer | Dirk Best <startaq@gmail.com> | 2009-05-14 17:10:11 +0200 |
commit | d3c26bc30cd5c85635df8014a550b453ec0304be (patch) | |
tree | d6ea12e3a68f8c3ed95624f4ebca4188bf3dc503 /bin/dwpage.php | |
parent | 345f6ba6cf2c50cbc0c83c5bc55e87fdfb32f843 (diff) | |
download | rpg-d3c26bc30cd5c85635df8014a550b453ec0304be.tar.gz rpg-d3c26bc30cd5c85635df8014a550b453ec0304be.tar.bz2 |
Minor change support for dwpage.php
darcs-hash:20090514151011-ac091-397ed299016a72545412f3d0cfbc534a65a10992.gz
Diffstat (limited to 'bin/dwpage.php')
-rwxr-xr-x | bin/dwpage.php | 6 |
1 files changed, 4 insertions, 2 deletions
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=<action>: 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); |