instance check - command line analysis - not return if only 1 argument

This commit is contained in:
David Kocik 2020-10-14 13:02:03 +02:00
parent cadebab07b
commit 83bd7ce7ab

View File

@ -35,9 +35,9 @@ namespace instance_check_internal
};
static CommandLineAnalysis process_command_line(int argc, char** argv)
{
CommandLineAnalysis ret { false };
if (argc < 2)
return ret;
CommandLineAnalysis ret;
//if (argc < 2)
// return ret;
std::vector<std::string> arguments { argv[0] };
for (size_t i = 1; i < argc; ++i) {
const std::string token = argv[i];