X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/96196413bef5ffb4ec3e09770b4e6847090dd71e..e328a9e013a709e77e8e783de98d30d7eccd6d65:/src/shpub/Command/Server.php diff --git a/src/shpub/Command/Server.php b/src/shpub/Command/Server.php index 8553414..a3c52ee 100644 --- a/src/shpub/Command/Server.php +++ b/src/shpub/Command/Server.php @@ -8,6 +8,21 @@ class Command_Server $this->cfg = $cfg; } + public static function opts(\Console_CommandLine $optParser) + { + $cmd = $optParser->addCommand('server'); + $cmd->addOption( + 'verbose', + array( + 'short_name' => '-v', + 'long_name' => '--verbose', + 'description' => 'Show more server infos', + 'action' => 'StoreTrue', + 'default' => false, + ) + ); + } + public function run($verbose) { foreach ($this->cfg->hosts as $key => $host) {