Prepare 0.6.0
[shpub.git] / src / shpub / Cli.php
index 733f4df0de88de1dd3bf3f1e9f1e600a3bb0a716..113c149b8829a45a7e8a146bbda23923ea12b714 100644 (file)
@@ -31,7 +31,10 @@ class Cli
 
             case 'server':
                 $cmd = new Command_Server($this->cfg);
-                $cmd->run($res->command->options['verbose']);
+                $cmd->run(
+                    $res->command->args['server'],
+                    $res->command->options['verbose']
+                );
                 break;
 
             default:
@@ -92,7 +95,7 @@ class Cli
         $optParser = new \Console_CommandLine();
         $optParser->name        = 'shpub';
         $optParser->description = 'Command line micropub client';
-        $optParser->version     = '0.3.0';
+        $optParser->version     = '0.6.0';
         $optParser->subcommand_required = true;
 
         $optParser->addOption(
@@ -128,6 +131,7 @@ class Cli
         Command_Repost::opts($optParser);
         Command_Rsvp::opts($optParser);
         Command_Bookmark::opts($optParser);
+        Command_X::opts($optParser);
 
         Command_Delete::opts($optParser);
         Command_Undelete::opts($optParser);