]> git.wh0rd.org - tt-rss.git/blobdiff - classes/pluginhost.php
greaderimport: add command line mode
[tt-rss.git] / classes / pluginhost.php
index 5f584cd00c9eab6a8cb52dd80f80fabd9443bf7b..a6ba72fc6fb1d648312a4fb2e9b38adac2fcc4ec 100644 (file)
@@ -172,10 +172,12 @@ class PluginHost {
                return false;
        }
 
-       function add_command($command, $description, $sender) {
+       function add_command($command, $description, $sender, $suffix = "", $arghelp = "") {
                $command = str_replace("-", "_", strtolower($command));
 
                $this->commands[$command] = array("description" => $description,
+                       "suffix" => $suffix,
+                       "arghelp" => $arghelp,
                        "class" => $sender);
        }