X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/e4bedda9ac3854ceb3d7b88a83155558e9ea6062..d78790c613a4363aa0566c357c4444e17582dc23:/src/shpub/Command/Reply.php diff --git a/src/shpub/Command/Reply.php b/src/shpub/Command/Reply.php index 327111d..622361a 100644 --- a/src/shpub/Command/Reply.php +++ b/src/shpub/Command/Reply.php @@ -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');