]> git.wh0rd.org - tt-rss.git/blobdiff - update.php
reduce next spawn idle messages
[tt-rss.git] / update.php
index f74b95a98c5069cef0bda89efe51d99fa221f64b..9c62ccb2a58ca7a5e112ceb6c06aa463613b9a0b 100755 (executable)
@@ -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;