Commit f7312166 authored by thomas.forbriger's avatar thomas.forbriger
Browse files

[FIX] (soutifu): provide specific usage information

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.

- add information regarding output file types
- distinguish detailed usage information for libstfinv engines
  and libdatrwxx file formats, respectively
parent a02a9a4c
......@@ -93,7 +93,7 @@ int main(int iargc, char* argv[])
" [-DEBUG=level]\n"
" parameters data synthetics" "\n"
" or: soutifu --help|-h" "\n"
" or: soutifu --xhelp" "\n"
" or: soutifu --xhelp | --iohelp" "\n"
};
// define full help text
......@@ -111,6 +111,9 @@ int main(int iargc, char* argv[])
" available engines and a set of options an parameters\n"
" to be passed to this engine.\n"
"\n"
"--xhelp print detailed usage instructions for available engines\n"
"--iohelp print detailed usage instructions for file input/output\n"
"\n"
"-v be verbose\n"
"-DEBUG=level produce debug output at level \"level\"\n"
"-o overwrite existing output files\n"
......@@ -145,7 +148,7 @@ int main(int iargc, char* argv[])
{"wc",arg_yes,"-"},
// 5: name of source correction filter wavelet file
{"ws",arg_yes,"-"},
// 6: present full details
// 6: present full details regarding engines
{"xhelp",arg_no,"-"},
// 7: present full details
{"DEBUG",arg_yes,"0"},
......@@ -155,6 +158,8 @@ int main(int iargc, char* argv[])
{"add",arg_yes,"-"},
// 10: output file for additional convolved time series
{"wa",arg_yes,"-"},
// 11: provide full details regarding file i/o
{"iohelp",arg_no,"-"},
{NULL}
};
......@@ -169,12 +174,12 @@ int main(int iargc, char* argv[])
Commandline cmdline(iargc, argv, options);
// help requested? print full help text...
if (cmdline.optset(0) || cmdline.optset(6))
if (cmdline.optset(0) || cmdline.optset(6) || cmdline.optset(11))
{
cerr << usage_text << endl;
cerr << help_text << endl;
datrw::supported_input_data_types(cerr);
if (cmdline.optset(6)) { datrw::online_help(cerr); }
datrw::supported_data_types(cerr);
if (cmdline.optset(11)) { datrw::online_help(cerr); }
cerr << endl;
stfinv::STFEngine::help(cerr);
cerr << endl;
......
Markdown is supported
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