Util+Test: Implement exit on first error in main ArgParser loop

This commit is contained in:
Riyyi
2021-09-07 18:14:14 +02:00
parent f021cf0e15
commit dc4fcc10ce
2 changed files with 31 additions and 2 deletions
+4
View File
@@ -241,6 +241,10 @@ bool ArgParser::parse(int argc, const char* argv[])
}
printf("-> argu: '%s'", argument.data());
}
if (m_exitOnFirstError && !result) {
break;
}
}
return result;