"help");
foreach ($pluginhost->get_commands() as $command => $data) {
- array_push($longopts, $command);
+ array_push($longopts, $command . $data["suffix"]);
}
$options = getopt("", $longopts);
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;