Commit 95956dc1 authored by thomas.forbriger's avatar thomas.forbriger
Browse files

[WP] (libstfinv): let onlinehelp produce reasonable output

parent 89385123
......@@ -54,14 +54,16 @@ int main(int iargc, char* argv[])
char usage_text[]=
{
ONLINEHELP_VERSION "\n"
"usage: onlinehelp [-procedure p]" "\n"
"usage: onlinehelp [-procedure p] [usage]" "\n"
" or: onlinehelp --help|-h" "\n"
};
// define full help text
char help_text[]=
{
ONLINEHELP_VERSION
"usage any non-empty parameter lets the program output\n"
" the usage summary of libstfinv\n"
"-procedure p prints the detailed description of procedure \"p\"\n"
};
// define commandline options
......@@ -81,6 +83,7 @@ int main(int iargc, char* argv[])
if (iargc<2)
{
cerr << usage_text << endl;
stfinv::engines(cout);
exit(0);
}
......@@ -90,7 +93,7 @@ int main(int iargc, char* argv[])
// help requested? print full help text...
if (cmdline.optset(0))
{
cerr << usage_text << endl;
cerr << usage_text << endl << endl;
cerr << help_text << endl;
stfinv::engines(cout);
exit(0);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment