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);
|
||||
|
||||
// Comment below until we are ready use only this parser
|
||||
// if (!parser.errorText().isEmpty()) {
|
||||
// QTextStream(stdout) << parser.errorText() << "\nUse --help for more information.";
|
||||
// return s_exitFailed;
|
||||
// }
|
||||
// Print any parser errors
|
||||
if (!parser.errorText().isEmpty()) {
|
||||
QTextStream(stdout) << parser.errorText() << "\n";
|
||||
}
|
||||
|
||||
if (parser.help()) {
|
||||
showHelp(parser);
|
||||
|
|
|
|||
Loading…
Reference in a new issue