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

libdatrwxx [FIX]: do not call online help for format "all"

The conditional in libdatrwxxinfo was setup inappropriately. When requesting
the complete online help output by parameter "all", the format specific help
function was subsequently called with parameter "all", which is non-sense.
parent 6c975b0a
......@@ -31,11 +31,12 @@
* - 29/11/2011 V1.1 remove dependency to libtfxx
* - 24/01/2012 V1.2 increase granularity of receivable texts
* - 23/07/2017 V1.3 report library version
* - 27/02/2019 V1.4 do no call online help for format "all"
*
* ============================================================================
*/
#define LIBDATRWXXINFO_VERSION \
"LIBDATRWXXINFO V1.3 present all online help to the user"
"LIBDATRWXXINFO V1.4 present all online help to the user"
#include <iostream>
#include <string>
......@@ -61,7 +62,7 @@ int main(int iargc, char* argv[])
cout << endl;
datrw::online_help();
}
if (argv[1]==std::string("formats"))
else if (argv[1]==std::string("formats"))
{
datrw::supported_data_types();
cout << 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