Commit 840149ab authored by Fabian Weissenbacher's avatar Fabian Weissenbacher

Added --help commandline option. Adapted help strings

parent 004573b2
......@@ -19,6 +19,8 @@
CommandLineArguments CommandLineParser::Parse(const QStringList& arguments)
{
QCommandLineParser commandLineParser;
commandLineParser.addHelpOption();
commandLineParser.addVersionOption();
commandLineParser.addOptions(GetOptions());
commandLineParser.process(arguments);
EvaluateDefaultedValues(commandLineParser);
......@@ -62,7 +64,7 @@ void CommandLineParser::EvaluateDefaultedValues(const QCommandLineParser& comman
if (!commandLineParser.isSet(option.name))
{
parsingLog.push_back("No value supplied for " + option.name.toStdString()
+ ", falling back to default value " + option.defaultValue.toStdString());
+ ", falling back to default value './" + option.defaultValue.toStdString() + "'");
}
}
}
......@@ -86,31 +88,31 @@ const std::list<CommandLineOption> CommandLineParser::commandLineOptions
{
{
"logLevel",
"Log Level (0 - 5)",
"Log Level, integer between 0 (no output) and 5 (verbose output)",
"logLevel",
"0"
},
{
"logFile",
"Path to the log file",
"Filepath of the openPASS log file (Default: './OpenPassSlave.log')",
"logFilePath",
"OpenPassSlave.log"
},
{
"lib",
"Root path of the libraries",
"Path to openpass libraries (Default: './../lib')",
"libraryPath",
"../lib"
},
{
"configs",
"Path where to retrieve configuration files",
"Path to folder that holds the configuration files (Default: './configs')",
"configsPath",
"configs"
},
{
"results",
"Path where to put result files",
"Path to results folder (Default: './results'). Will be created if does not exist. Its contents may be overwritten.",
"resultPath",
"results"
}
......
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