X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/d5dbb7068eeeee3ae5e92cee77763c1e70e28c97..HEAD:/src/shpub/Command/Rsvp.php diff --git a/src/shpub/Command/Rsvp.php b/src/shpub/Command/Rsvp.php index 4e67e9b..edf06cc 100644 --- a/src/shpub/Command/Rsvp.php +++ b/src/shpub/Command/Rsvp.php @@ -3,12 +3,17 @@ namespace shpub; /** * Repondez s'il vous plait - an answer to an invitation + * + * @author Christian Weiske + * @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3 + * @link http://cweiske.de/shpub.htm */ 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( @@ -48,7 +53,7 @@ class Command_Rsvp extends Command_AbstractProps } $req = new Request($this->cfg->host, $this->cfg); - $req->setType('h', 'entry'); + $req->setType('entry'); $req->addProperty('in-reply-to', $url); $req->addProperty('rsvp', $rsvp); if ($cmdRes->args['text']) {