Merge pull request #4000 from akallabeth/ign_keyword_fix

Command line ignore empty if flag set
This commit is contained in:
David Fort 2017-11-16 13:26:01 +01:00 committed by GitHub
commit 0d92c725c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,10 @@ int CommandLineParseArgumentsA(int argc, LPCSTR* argv, COMMAND_LINE_ARGUMENT_A*
if (argc == 1)
{
status = COMMAND_LINE_STATUS_PRINT_HELP;
if (flags & COMMAND_LINE_IGN_UNKNOWN_KEYWORD)
status = 0;
else
status = COMMAND_LINE_STATUS_PRINT_HELP;
return status;
}