Add "scope" option to connect command
[shpub.git] / src / shpub / Cli.php
index 56898511e8ac8405013a6abbad53e77f82acffd9..24207a108f71f0e76d1107567aeb3aef7bae5d4e 100644 (file)
@@ -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;
 
@@ -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(