diff options
author | Andrew Dolgov <[email protected]> | 2013-03-28 18:37:36 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-03-28 18:37:36 +0400 |
commit | 4cf0f9a900cb8bd2bd9bf82615fdd18e0ced80e2 (patch) | |
tree | 5eb5573cd16ded1e5b6eb23b86c4f0c33012e9fe /classes | |
parent | 4c92878f5f314402d302da8b10534570cb14d740 (diff) |
greaderimport: add command line mode
Diffstat (limited to 'classes')
-rw-r--r-- | classes/pluginhost.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/pluginhost.php b/classes/pluginhost.php index 5f584cd00..a6ba72fc6 100644 --- a/classes/pluginhost.php +++ b/classes/pluginhost.php @@ -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); } |