Support --html everywhere
[shpub.git] / src / shpub / Command / AbstractProps.php
index c9ea8bb1a5c323876da182ebe2c1f455afdd2ff7..b581f3c33e64378e8eeb9b5483c0e1122f08c3af 100644 (file)
@@ -107,6 +107,20 @@ class Command_AbstractProps
         static::addOptJson($cmd);
     }
 
+    protected static function addOptHtml(\Console_CommandLine_Command $cmd)
+    {
+        $cmd->addOption(
+            'html',
+            array(
+                'short_name'  => '-h',
+                'long_name'   => '--html',
+                'description' => 'Text content is HTML',
+                'action'      => 'StoreTrue',
+                'default'     => false,
+            )
+        );
+    }
+
     protected static function addOptJson(\Console_CommandLine_Command $cmd)
     {
         $cmd->addOption(