X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/059c6ab77b8e63210b9afc266d62c9f543d4d7ae..6c791f2d0c159d56c570802c8d9bd3612262aa9e:/src/shpub/Command/Rsvp.php?ds=sidebyside diff --git a/src/shpub/Command/Rsvp.php b/src/shpub/Command/Rsvp.php index 69602d9..f46d230 100644 --- a/src/shpub/Command/Rsvp.php +++ b/src/shpub/Command/Rsvp.php @@ -9,6 +9,8 @@ class Command_Rsvp extends Command_AbstractProps public static function opts(\Console_CommandLine $optParser) { $cmd = $optParser->addCommand('rsvp'); + $cmd->description = 'Create a reservation'; + static::addOptHtml($cmd); static::optsGeneric($cmd); $cmd->addArgument( 'url', @@ -50,8 +52,8 @@ class Command_Rsvp extends Command_AbstractProps $req->setType('h', 'entry'); $req->addProperty('in-reply-to', $url); $req->addProperty('rsvp', $rsvp); - if ($cmdRes->args['text'] != '') { - $req->addProperty('content', $cmdRes->args['text']); + if ($cmdRes->args['text']) { + $req->addContent($cmdRes->args['text'], $cmdRes->options['html']); } $this->handleGenericOptions($cmdRes, $req);