summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-28 18:37:36 +0400
committerAndrew Dolgov <[email protected]>2013-03-28 18:37:36 +0400
commit4cf0f9a900cb8bd2bd9bf82615fdd18e0ced80e2 (patch)
tree5eb5573cd16ded1e5b6eb23b86c4f0c33012e9fe /update.php
parent4c92878f5f314402d302da8b10534570cb14d740 (diff)
greaderimport: add command line mode
Diffstat (limited to 'update.php')
-rwxr-xr-xupdate.php5
1 files changed, 3 insertions, 2 deletions
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;