refactor: deskflow core print any parser errors
This commit is contained in:
parent
41d5359f4d
commit
debfd4dc69
1 changed files with 4 additions and 5 deletions
|
|
@ -51,11 +51,10 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
CoreArgParser parser(args);
|
CoreArgParser parser(args);
|
||||||
|
|
||||||
// Comment below until we are ready use only this parser
|
// Print any parser errors
|
||||||
// if (!parser.errorText().isEmpty()) {
|
if (!parser.errorText().isEmpty()) {
|
||||||
// QTextStream(stdout) << parser.errorText() << "\nUse --help for more information.";
|
QTextStream(stdout) << parser.errorText() << "\n";
|
||||||
// return s_exitFailed;
|
}
|
||||||
// }
|
|
||||||
|
|
||||||
if (parser.help()) {
|
if (parser.help()) {
|
||||||
showHelp(parser);
|
showHelp(parser);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue