public static function opts(\Console_CommandLine $optParser)
{
$cmd = $optParser->addCommand('bookmark');
+ $cmd->description = 'Create a bookmark';
+ 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('bookmark-of', $url);
+ $req->setType('entry');
+ $req->addProperty('bookmark-of', $url);
if ($cmdRes->args['text']) {
- $req->req->addPostParameter('content', $cmdRes->args['text']);
+ $req->addContent($cmdRes->args['text'], $cmdRes->options['html']);
}