add "published" option to notes
[shpub.git] / src / shpub / Command / Reply.php
index 327111dbcc6a345eb14b7f875af654d58f14fbb8..622361a9d81f1aaa31b474e0088106a68ef5d2dd 100644 (file)
@@ -13,6 +13,25 @@ class Command_Reply
         $this->cfg = $cfg;
     }
 
+    public static function opts(\Console_CommandLine $optParser)
+    {
+        $cmd = $optParser->addCommand('reply');
+        $cmd->addArgument(
+            'url',
+            [
+                'optional'    => false,
+                'description' => 'URL that is replied to',
+            ]
+        );
+        $cmd->addArgument(
+            'text',
+            [
+                'optional'    => false,
+                'multiple'    => true,
+                'description' => 'Reply text',
+            ]
+        );
+    }
     public function run($url, $text)
     {
         $url = Validator::url($url, 'url');