X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/9f81b10b061382886a9c7e21ca941c11a6e4bee1..0103f507ef72ef369b2f7e9f90fe8922b691c33f:/src/shpub/Cli.php diff --git a/src/shpub/Cli.php b/src/shpub/Cli.php index 5689851..733f4df 100644 --- a/src/shpub/Cli.php +++ b/src/shpub/Cli.php @@ -24,7 +24,8 @@ class Cli $res->command->args['server'], $res->command->args['user'], $res->command->args['key'], - $res->command->options['force'] + $res->command->options['force'], + $res->command->options['scope'] ); break; @@ -49,7 +50,7 @@ class Cli /** * Let the CLI option parser parse the options. * - * @param object $parser Option parser + * @param object $optParser Option parser * * @return object Parsed command line parameters */ @@ -89,8 +90,9 @@ class Cli protected function loadOptParser() { $optParser = new \Console_CommandLine(); - $optParser->description = 'shpub'; - $optParser->version = '0.1.0'; + $optParser->name = 'shpub'; + $optParser->description = 'Command line micropub client'; + $optParser->version = '0.3.0'; $optParser->subcommand_required = true; $optParser->addOption( @@ -117,6 +119,7 @@ class Cli Command_Connect::opts($optParser); Command_Server::opts($optParser); + Command_Targets::opts($optParser); Command_Article::opts($optParser); Command_Note::opts($optParser);