1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:35:57 +00:00

greaderimport: add command line mode

This commit is contained in:
Andrew Dolgov
2013-03-28 18:37:36 +04:00
parent 4c92878f5f
commit 4cf0f9a900
3 changed files with 70 additions and 21 deletions

View File

@@ -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;