X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/f3edeb601556e7741804b0c0bec2711996774bfe..6c791f2d0c159d56c570802c8d9bd3612262aa9e:/src/shpub/Command/Server.php diff --git a/src/shpub/Command/Server.php b/src/shpub/Command/Server.php index 8553414..34d939e 100644 --- a/src/shpub/Command/Server.php +++ b/src/shpub/Command/Server.php @@ -8,6 +8,22 @@ class Command_Server $this->cfg = $cfg; } + public static function opts(\Console_CommandLine $optParser) + { + $cmd = $optParser->addCommand('server'); + $cmd->description = 'List all connections'; + $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) {