Command line ignore empty if flag set
When CommandLineParseArgumentsA is called with flag
COMMAND_LINE_IGN_UNKNOWN_KEYWORD return success if the
command line is empty.
@@ -85,6 +85,9 @@ int CommandLineParseArgumentsA(int argc, LPCSTR* argv, COMMAND_LINE_ARGUMENT_A*
if (argc == 1)
{
+ if (flags & COMMAND_LINE_IGN_UNKNOWN_KEYWORD)
+ status = 0;
+ else
status = COMMAND_LINE_STATUS_PRINT_HELP;
return status;
}
