public static function opts(\Console_CommandLine $optParser)
{
$cmd = $optParser->addCommand('note');
+ $cmd->description = 'Create a note';
+ static::addOptHtml($cmd);
static::optsGeneric($cmd);
$cmd->addArgument(
'text',
{
$req = new Request($this->cfg->host, $this->cfg);
$req->setType('entry');
- $req->addProperty('content', $cmdRes->args['text']);
+ $req->addContent($cmdRes->args['text'], $cmdRes->options['html']);
$this->handleGenericOptions($cmdRes, $req);
$res = $req->send();