22.06.2020, 19:46
Auch zu diesem Plugin wird es ein Shell Tool geben;
ich arbeite an so etwas..
Falls Wünsche bestehen, früher Input macht weniger Arbeit.
ich arbeite an so etwas..
Falls Wünsche bestehen, früher Input macht weniger Arbeit.
Code:
int HelpText(std::string ProgName) {
std::cout << ProgName <<
" - a commandline tool for the easyvdr VDR Plugin.\n"
"It configures VDR Plugins by writing to their ini files.\n\n"
"The following options are available.\n"
" -h, --help\n"
" show this help text and exit.\n"
" --list_plugins\n"
" show all available plugins\n"
" --enabled_plugins\n"
" show all enabled plugins\n"
" --disabled_plugins\n"
" show all disabled plugins\n"
" --all_status\n"
" shows all plugins with their status and commandline.\n"
" --plugin PLUGINNAME\n"
" selects the plugin PLUGINNAME for commands.\n"
" --plugindir DIRECTORY\n"
" use DIRECTORY as path for plugins libs,\n"
" instead of /usr/local/lib/vdr\n"
" --inidir DIRECTORY\n"
" use DIRECTORY as path for plugin configs,\n"
" instead of /etc/vdr/conf.d\n"
" --enable\n"
" enable autorun of this plugin.\n"
" Requires --plugin PLUGINNAME.\n"
" --disable\n"
" disable autorun of this plugin.\n"
" Requires --plugin PLUGINNAME.\n"
" --status\n"
" shows the status and commandline of a plugin.\n"
" Requires --plugin PLUGINNAME.\n"
" --get_commandline\n"
" prints the commandline of a plugin to stdout and exit.\n"
" Requires --plugin PLUGINNAME.\n"
" --set_commandline STRING\n"
" set the commandline of a plugin to STRING.\n"
" Requires --plugin PLUGINNAME.\n"
" --del_commandline STRING\n"
" deletes STRING from the commandline of a plugin,\n"
" does nothing if that string is not found.\n"
" Requires --plugin PLUGINNAME.\n"
" --add_commandline STRING\n"
" adds STRING to the commandline of a plugin.\n"
" Requires --plugin PLUGINNAME.\n"
" --replace_commandline FROM TO\n"
" requires two arguments: FROM and TO\n"
" replaces the first hit of FROM by TO in plugins commandline\n"
" Requires --plugin PLUGINNAME.\n"