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 --- update.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'update.php') diff --git a/update.php b/update.php index f74b95a98..9c62ccb2a 100755 --- a/update.php +++ b/update.php @@ -37,7 +37,7 @@ "help"); foreach ($pluginhost->get_commands() as $command => $data) { - array_push($longopts, $command); + array_push($longopts, $command . $data["suffix"]); } $options = getopt("", $longopts); @@ -79,7 +79,8 @@ print "Plugin options:\n"; foreach ($pluginhost->get_commands() as $command => $data) { - printf(" --%-19s - %s\n", "$command", $data["description"]); + $args = $data['arghelp']; + printf(" --%-19s - %s\n", "$command $args", $data["description"]); } return; -- cgit v1.2.3