add description for all commands
[shpub.git] / src / shpub / Cli.php
index 45071553e4f480ae106d43b43a1346c35044379a..e071252eb6020b75d70034727d3804fd3cbad5f1 100644 (file)
@@ -89,8 +89,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.1.0';
         $optParser->subcommand_required = true;
 
         $optParser->addOption(
@@ -130,6 +131,8 @@ class Cli
         Command_Undelete::opts($optParser);
         Command_Update::opts($optParser);
 
+        Command_Upload::opts($optParser);
+
         return $optParser;
     }