Exit when parsing arguments fails

This commit is contained in:
Martchus 2021-05-13 16:56:27 +02:00
parent 874c964e0b
commit 8f1909dfdf
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ int main(int argc, char *argv[])
parser.setMainArguments({ &generateArg, &noColorArg, &helpArg });
// parse arguments
parser.parseArgs(argc, argv, ParseArgumentBehavior::CheckConstraints | ParseArgumentBehavior::InvokeCallbacks);
parser.parseArgs(argc, argv);
if (helpArg.isPresent() || !generateArg.isPresent()) {
return 0;
}