public static function opts(\Console_CommandLine $optParser)
{
$cmd = $optParser->addCommand('rsvp');
+ static::addOptHtml($cmd);
static::optsGeneric($cmd);
$cmd->addArgument(
'url',
}
$req = new Request($this->cfg->host, $this->cfg);
- $req->req->addPostParameter('h', 'entry');
- $req->req->addPostParameter('in-reply-to', $url);
- $req->req->addPostParameter('rsvp', $rsvp);
- if ($cmdRes->args['text'] != '') {
- $req->req->addPostParameter('content', $cmdRes->args['text']);
+ $req->setType('h', 'entry');
+ $req->addProperty('in-reply-to', $url);
+ $req->addProperty('rsvp', $rsvp);
+ if ($cmdRes->args['text']) {
+ $req->addContent($cmdRes->args['text'], $cmdRes->options['html']);
}
$this->handleGenericOptions($cmdRes, $req);