X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/059c6ab77b8e63210b9afc266d62c9f543d4d7ae..d5dbb7068eeeee3ae5e92cee77763c1e70e28c97:/src/shpub/Command/Bookmark.php diff --git a/src/shpub/Command/Bookmark.php b/src/shpub/Command/Bookmark.php index bdbe0f3..0116cb5 100644 --- a/src/shpub/Command/Bookmark.php +++ b/src/shpub/Command/Bookmark.php @@ -6,6 +6,7 @@ class Command_Bookmark extends Command_AbstractProps public static function opts(\Console_CommandLine $optParser) { $cmd = $optParser->addCommand('bookmark'); + static::addOptHtml($cmd); static::optsGeneric($cmd); $cmd->addArgument( 'url', @@ -36,7 +37,7 @@ class Command_Bookmark extends Command_AbstractProps $req->addProperty('bookmark-of', $url); if ($cmdRes->args['text']) { - $req->addProperty('content', $cmdRes->args['text']); + $req->addContent($cmdRes->args['text'], $cmdRes->options['html']); }