add support for articles (with HTML)
[shpub.git] / src / shpub / Cli.php
index 86efa5377c2f4781bd6d489703442203a1d0b07c..eedbb10e37d916f4c68891bec497a4a3f4fddb29 100644 (file)
@@ -41,7 +41,7 @@ class Cli
                 break;
             }
         } catch (\Exception $e) {
-            echo 'Error: ' . $e->getMessage() . "\n";
+            Log::err('Error: ' . $e->getMessage());
             exit(1);
         }
     }
@@ -90,7 +90,7 @@ class Cli
     {
         $optParser = new \Console_CommandLine();
         $optParser->description = 'shpub';
-        $optParser->version = '0.0.3';
+        $optParser->version = '0.0.4';
         $optParser->subcommand_required = true;
 
         $optParser->addOption(
@@ -160,9 +160,11 @@ class Cli
             )
         );
 
+        Command_Article::opts($optParser);
         Command_Note::opts($optParser);
         Command_Reply::opts($optParser);
         Command_Like::opts($optParser);
+        Command_Repost::opts($optParser);
 
         return $optParser;
     }