X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/fa014d88919516a9763a6a9ab0c620ef102f04e4..a732e29e9c1c48c35301887ab95d391d092b1c2f:/src/shpub/Cli.php diff --git a/src/shpub/Cli.php b/src/shpub/Cli.php index 113c149..080bfe8 100644 --- a/src/shpub/Cli.php +++ b/src/shpub/Cli.php @@ -78,6 +78,7 @@ class Cli } } $this->cfg->setDebug($opts['debug']); + $this->cfg->setDryRun($opts['dryrun']); return $res; } catch (\Exception $exc) { @@ -119,6 +120,17 @@ class Cli 'default' => false, ) ); + $optParser->addOption( + 'dryrun', + array( + 'short_name' => '-n', + 'long_name' => '--dry-run', + 'description' => 'Do not send modifying HTTP request(s)' + . ' to the server', + 'action' => 'StoreTrue', + 'default' => false, + ) + ); Command_Connect::opts($optParser); Command_Server::opts($optParser);