From 4cf0f9a900cb8bd2bd9bf82615fdd18e0ced80e2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 28 Mar 2013 18:37:36 +0400 Subject: greaderimport: add command line mode --- classes/pluginhost.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'classes/pluginhost.php') 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); } -- cgit v1.2.3-54-g00ecf