2017-11-14 18:10:52 +03:00
|
|
|
#include <errno.h>
|
2012-11-02 08:20:46 +04:00
|
|
|
#include <winpr/crt.h>
|
2022-02-23 16:49:03 +03:00
|
|
|
#include <winpr/assert.h>
|
2012-11-02 08:20:46 +04:00
|
|
|
#include <winpr/tchar.h>
|
|
|
|
#include <winpr/cmdline.h>
|
2018-06-06 17:43:09 +03:00
|
|
|
#include <winpr/strlst.h>
|
2012-11-02 08:20:46 +04:00
|
|
|
|
2021-07-06 12:35:43 +03:00
|
|
|
static const char* testArgv[] = { "mstsc.exe",
|
|
|
|
"+z",
|
|
|
|
"/w:1024",
|
|
|
|
"/h:768",
|
|
|
|
"/bpp:32",
|
|
|
|
"/admin",
|
|
|
|
"/multimon",
|
|
|
|
"+fonts",
|
|
|
|
"-wallpaper",
|
|
|
|
"/v:localhost:3389",
|
|
|
|
"/valuelist:value1,value2",
|
|
|
|
"/valuelist-empty:",
|
|
|
|
0 };
|
2012-11-02 08:20:46 +04:00
|
|
|
|
2022-02-23 16:49:03 +03:00
|
|
|
static const char testListAppName[] = "test app name";
|
2022-02-24 10:46:18 +03:00
|
|
|
static const char* testListArgs[] = {
|
|
|
|
"a,b,c,d", "a:,\"b:xxx, yyy\",c", "a:,,,b", "a:,\",b", "\"a,b,c,d d d,fff\"", "",
|
|
|
|
NULL, "'a,b,\",c'", "\"a,b,',c\"", "', a, ', b,c'", "\"a,b,\",c\""
|
|
|
|
};
|
2022-02-23 16:49:03 +03:00
|
|
|
|
|
|
|
static const char* testListArgs1[] = { testListAppName, "a", "b", "c", "d" };
|
|
|
|
static const char* testListArgs2[] = { testListAppName, "a:", "b:xxx, yyy", "c" };
|
|
|
|
// static const char* testListArgs3[] = {};
|
|
|
|
// static const char* testListArgs4[] = {};
|
|
|
|
static const char* testListArgs5[] = { testListAppName, "a", "b", "c", "d d d", "fff" };
|
|
|
|
static const char* testListArgs6[] = { testListAppName };
|
|
|
|
static const char* testListArgs7[] = { testListAppName };
|
2022-02-24 10:46:18 +03:00
|
|
|
static const char* testListArgs8[] = { testListAppName, "a", "b", "\"", "c" };
|
|
|
|
static const char* testListArgs9[] = { testListAppName, "a", "b", "'", "c" };
|
|
|
|
// static const char* testListArgs10[] = {};
|
|
|
|
// static const char* testListArgs11[] = {};
|
2022-02-23 16:49:03 +03:00
|
|
|
|
2022-02-24 10:46:18 +03:00
|
|
|
static const char** testListArgsResult[] = { testListArgs1,
|
|
|
|
testListArgs2,
|
|
|
|
NULL /* testListArgs3 */,
|
|
|
|
NULL /* testListArgs4 */,
|
|
|
|
testListArgs5,
|
|
|
|
testListArgs6,
|
|
|
|
testListArgs7,
|
|
|
|
testListArgs8,
|
|
|
|
testListArgs9,
|
|
|
|
NULL /* testListArgs10 */,
|
|
|
|
NULL /* testListArgs11 */ };
|
2022-02-23 16:49:03 +03:00
|
|
|
static const size_t testListArgsCount[] = {
|
2022-02-24 10:46:18 +03:00
|
|
|
ARRAYSIZE(testListArgs1),
|
|
|
|
ARRAYSIZE(testListArgs2),
|
|
|
|
0 /* ARRAYSIZE(testListArgs3) */,
|
|
|
|
0 /* ARRAYSIZE(testListArgs4) */,
|
|
|
|
ARRAYSIZE(testListArgs5),
|
|
|
|
ARRAYSIZE(testListArgs6),
|
|
|
|
ARRAYSIZE(testListArgs7),
|
|
|
|
ARRAYSIZE(testListArgs8),
|
|
|
|
ARRAYSIZE(testListArgs9),
|
|
|
|
0 /* ARRAYSIZE(testListArgs10) */,
|
|
|
|
0 /* ARRAYSIZE(testListArgs11) */
|
2022-02-23 16:49:03 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
static BOOL checkResult(size_t index, char** actual, size_t actualCount)
|
|
|
|
{
|
|
|
|
const char** result = testListArgsResult[index];
|
|
|
|
const size_t resultCount = testListArgsCount[index];
|
|
|
|
|
|
|
|
if (resultCount != actualCount)
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
if (actualCount == 0)
|
|
|
|
{
|
|
|
|
return (actual == NULL);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (!actual)
|
|
|
|
return FALSE;
|
|
|
|
|
2024-01-30 12:25:38 +03:00
|
|
|
for (size_t x = 0; x < actualCount; x++)
|
2022-02-23 16:49:03 +03:00
|
|
|
{
|
|
|
|
const char* a = result[x];
|
|
|
|
const char* b = actual[x];
|
|
|
|
|
|
|
|
if (strcmp(a, b) != 0)
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static BOOL TestCommandLineParseCommaSeparatedValuesEx(void)
|
|
|
|
{
|
|
|
|
WINPR_ASSERT(ARRAYSIZE(testListArgs) == ARRAYSIZE(testListArgsResult));
|
|
|
|
WINPR_ASSERT(ARRAYSIZE(testListArgs) == ARRAYSIZE(testListArgsCount));
|
|
|
|
|
2024-01-30 12:25:38 +03:00
|
|
|
for (size_t x = 0; x < ARRAYSIZE(testListArgs); x++)
|
2022-02-23 16:49:03 +03:00
|
|
|
{
|
|
|
|
const char* list = testListArgs[x];
|
|
|
|
size_t count = 42;
|
|
|
|
char** ptr = CommandLineParseCommaSeparatedValuesEx(testListAppName, list, &count);
|
|
|
|
BOOL valid = checkResult(x, ptr, count);
|
|
|
|
free(ptr);
|
|
|
|
if (!valid)
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2012-11-02 08:20:46 +04:00
|
|
|
int TestCmdLine(int argc, char* argv[])
|
|
|
|
{
|
2024-01-23 18:49:54 +03:00
|
|
|
int status = 0;
|
2018-11-05 14:29:06 +03:00
|
|
|
int ret = -1;
|
2024-01-23 18:49:54 +03:00
|
|
|
DWORD flags = 0;
|
2017-11-14 18:10:52 +03:00
|
|
|
long width = 0;
|
|
|
|
long height = 0;
|
2024-01-23 18:49:54 +03:00
|
|
|
const COMMAND_LINE_ARGUMENT_A* arg = NULL;
|
|
|
|
int testArgc = 0;
|
|
|
|
char** command_line = NULL;
|
2019-11-06 17:24:51 +03:00
|
|
|
COMMAND_LINE_ARGUMENT_A args[] = {
|
|
|
|
{ "v", COMMAND_LINE_VALUE_REQUIRED, NULL, NULL, NULL, -1, NULL, "destination server" },
|
|
|
|
{ "port", COMMAND_LINE_VALUE_REQUIRED, NULL, NULL, NULL, -1, NULL, "server port" },
|
|
|
|
{ "w", COMMAND_LINE_VALUE_REQUIRED, NULL, NULL, NULL, -1, NULL, "width" },
|
|
|
|
{ "h", COMMAND_LINE_VALUE_REQUIRED, NULL, NULL, NULL, -1, NULL, "height" },
|
|
|
|
{ "f", COMMAND_LINE_VALUE_FLAG, NULL, NULL, NULL, -1, NULL, "fullscreen" },
|
|
|
|
{ "bpp", COMMAND_LINE_VALUE_REQUIRED, NULL, NULL, NULL, -1, NULL,
|
|
|
|
"session bpp (color depth)" },
|
|
|
|
{ "admin", COMMAND_LINE_VALUE_FLAG, NULL, NULL, NULL, -1, "console",
|
|
|
|
"admin (or console) session" },
|
|
|
|
{ "multimon", COMMAND_LINE_VALUE_FLAG, NULL, NULL, NULL, -1, NULL, "multi-monitor" },
|
|
|
|
{ "a", COMMAND_LINE_VALUE_REQUIRED, NULL, NULL, NULL, -1, "addin", "addin" },
|
|
|
|
{ "u", COMMAND_LINE_VALUE_REQUIRED, NULL, NULL, NULL, -1, NULL, "username" },
|
|
|
|
{ "p", COMMAND_LINE_VALUE_REQUIRED, NULL, NULL, NULL, -1, NULL, "password" },
|
|
|
|
{ "d", COMMAND_LINE_VALUE_REQUIRED, NULL, NULL, NULL, -1, NULL, "domain" },
|
|
|
|
{ "z", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueFalse, NULL, -1, NULL, "compression" },
|
|
|
|
{ "audio", COMMAND_LINE_VALUE_REQUIRED, NULL, NULL, NULL, -1, NULL, "audio output mode" },
|
|
|
|
{ "mic", COMMAND_LINE_VALUE_FLAG, NULL, NULL, NULL, -1, NULL, "audio input (microphone)" },
|
|
|
|
{ "fonts", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueFalse, NULL, -1, NULL,
|
|
|
|
"smooth fonts (cleartype)" },
|
|
|
|
{ "aero", COMMAND_LINE_VALUE_BOOL, NULL, NULL, BoolValueFalse, -1, NULL,
|
|
|
|
"desktop composition" },
|
|
|
|
{ "window-drag", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueFalse, NULL, -1, NULL,
|
|
|
|
"full window drag" },
|
|
|
|
{ "menu-anims", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueFalse, NULL, -1, NULL,
|
|
|
|
"menu animations" },
|
|
|
|
{ "themes", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueTrue, NULL, -1, NULL, "themes" },
|
|
|
|
{ "wallpaper", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueTrue, NULL, -1, NULL, "wallpaper" },
|
|
|
|
{ "codec", COMMAND_LINE_VALUE_REQUIRED, NULL, NULL, NULL, -1, NULL, "codec" },
|
|
|
|
{ "nego", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueTrue, NULL, -1, NULL,
|
|
|
|
"protocol security negotiation" },
|
|
|
|
{ "sec", COMMAND_LINE_VALUE_REQUIRED, NULL, NULL, NULL, -1, NULL,
|
|
|
|
"force specific protocol security" },
|
2022-10-19 15:09:03 +03:00
|
|
|
#if defined(WITH_FREERDP_DEPRECATED)
|
2019-11-06 17:24:51 +03:00
|
|
|
{ "sec-rdp", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueTrue, NULL, -1, NULL,
|
|
|
|
"rdp protocol security" },
|
|
|
|
{ "sec-tls", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueTrue, NULL, -1, NULL,
|
|
|
|
"tls protocol security" },
|
|
|
|
{ "sec-nla", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueTrue, NULL, -1, NULL,
|
|
|
|
"nla protocol security" },
|
|
|
|
{ "sec-ext", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueFalse, NULL, -1, NULL,
|
|
|
|
"nla extended protocol security" },
|
|
|
|
{ "cert-name", COMMAND_LINE_VALUE_REQUIRED, NULL, NULL, NULL, -1, NULL,
|
|
|
|
"certificate name" },
|
|
|
|
{ "cert-ignore", COMMAND_LINE_VALUE_FLAG, NULL, NULL, NULL, -1, NULL,
|
|
|
|
"ignore certificate" },
|
2022-10-19 15:09:03 +03:00
|
|
|
#endif
|
2021-07-06 12:35:43 +03:00
|
|
|
{ "valuelist", COMMAND_LINE_VALUE_REQUIRED, "<val1>,<val2>", NULL, NULL, -1, NULL,
|
|
|
|
"List of comma separated values." },
|
|
|
|
{ "valuelist-empty", COMMAND_LINE_VALUE_REQUIRED, "<val1>,<val2>", NULL, NULL, -1, NULL,
|
|
|
|
"List of comma separated values. Used to test correct behavior if an empty list was "
|
|
|
|
"passed." },
|
2019-11-06 17:24:51 +03:00
|
|
|
{ "version", COMMAND_LINE_VALUE_FLAG | COMMAND_LINE_PRINT_VERSION, NULL, NULL, NULL, -1,
|
|
|
|
NULL, "print version" },
|
|
|
|
{ "help", COMMAND_LINE_VALUE_FLAG | COMMAND_LINE_PRINT_HELP, NULL, NULL, NULL, -1, "?",
|
|
|
|
"print help" },
|
|
|
|
{ NULL, 0, NULL, NULL, NULL, -1, NULL, NULL }
|
|
|
|
};
|
2018-06-07 14:29:44 +03:00
|
|
|
|
2021-07-29 11:18:52 +03:00
|
|
|
WINPR_UNUSED(argc);
|
|
|
|
WINPR_UNUSED(argv);
|
|
|
|
|
2012-11-05 01:09:43 +04:00
|
|
|
flags = COMMAND_LINE_SIGIL_SLASH | COMMAND_LINE_SEPARATOR_COLON | COMMAND_LINE_SIGIL_PLUS_MINUS;
|
2019-11-06 17:24:51 +03:00
|
|
|
testArgc = string_list_length(testArgv);
|
2018-06-07 14:29:44 +03:00
|
|
|
command_line = string_list_copy(testArgv);
|
2018-11-05 14:29:06 +03:00
|
|
|
|
|
|
|
if (!command_line)
|
|
|
|
{
|
|
|
|
printf("Argument duplication failed (not enough memory?)\n");
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2018-06-06 17:43:09 +03:00
|
|
|
status = CommandLineParseArgumentsA(testArgc, command_line, args, flags, NULL, NULL, NULL);
|
2012-11-02 08:58:32 +04:00
|
|
|
|
2012-11-02 22:16:37 +04:00
|
|
|
if (status != 0)
|
|
|
|
{
|
|
|
|
printf("CommandLineParseArgumentsA failure: %d\n", status);
|
2018-11-05 14:29:06 +03:00
|
|
|
goto out;
|
2012-11-02 22:16:37 +04:00
|
|
|
}
|
2012-11-02 08:20:46 +04:00
|
|
|
|
2012-11-02 08:58:32 +04:00
|
|
|
arg = CommandLineFindArgumentA(args, "w");
|
|
|
|
|
|
|
|
if (strcmp("1024", arg->Value) != 0)
|
2012-11-02 22:16:37 +04:00
|
|
|
{
|
|
|
|
printf("CommandLineFindArgumentA: unexpected %s value %s\n", arg->Name, arg->Value);
|
2018-11-05 14:29:06 +03:00
|
|
|
goto out;
|
2012-11-02 22:16:37 +04:00
|
|
|
}
|
2012-11-02 08:20:46 +04:00
|
|
|
|
2012-11-02 08:58:32 +04:00
|
|
|
arg = CommandLineFindArgumentA(args, "h");
|
|
|
|
|
|
|
|
if (strcmp("768", arg->Value) != 0)
|
2012-11-02 22:16:37 +04:00
|
|
|
{
|
|
|
|
printf("CommandLineFindArgumentA: unexpected %s value %s\n", arg->Name, arg->Value);
|
2018-11-05 14:29:06 +03:00
|
|
|
goto out;
|
2012-11-02 22:16:37 +04:00
|
|
|
}
|
2012-11-02 08:20:46 +04:00
|
|
|
|
2012-11-02 08:58:32 +04:00
|
|
|
arg = CommandLineFindArgumentA(args, "f");
|
|
|
|
|
|
|
|
if (arg->Value)
|
2012-11-02 22:16:37 +04:00
|
|
|
{
|
|
|
|
printf("CommandLineFindArgumentA: unexpected %s value\n", arg->Name);
|
2018-11-05 14:29:06 +03:00
|
|
|
goto out;
|
2012-11-02 22:16:37 +04:00
|
|
|
}
|
2012-11-02 08:20:46 +04:00
|
|
|
|
2012-11-02 08:58:32 +04:00
|
|
|
arg = CommandLineFindArgumentA(args, "admin");
|
|
|
|
|
|
|
|
if (!arg->Value)
|
2012-11-02 22:16:37 +04:00
|
|
|
{
|
|
|
|
printf("CommandLineFindArgumentA: unexpected %s value\n", arg->Name);
|
2018-11-05 14:29:06 +03:00
|
|
|
goto out;
|
2012-11-02 22:16:37 +04:00
|
|
|
}
|
2012-11-02 08:20:46 +04:00
|
|
|
|
2012-11-02 08:58:32 +04:00
|
|
|
arg = CommandLineFindArgumentA(args, "multimon");
|
|
|
|
|
|
|
|
if (!arg->Value)
|
2012-11-02 22:16:37 +04:00
|
|
|
{
|
|
|
|
printf("CommandLineFindArgumentA: unexpected %s value\n", arg->Name);
|
2018-11-05 14:29:06 +03:00
|
|
|
goto out;
|
2012-11-02 22:16:37 +04:00
|
|
|
}
|
2012-11-02 08:20:46 +04:00
|
|
|
|
2012-11-02 08:58:32 +04:00
|
|
|
arg = CommandLineFindArgumentA(args, "v");
|
|
|
|
|
|
|
|
if (strcmp("localhost:3389", arg->Value) != 0)
|
2012-11-02 22:16:37 +04:00
|
|
|
{
|
|
|
|
printf("CommandLineFindArgumentA: unexpected %s value %s\n", arg->Name, arg->Value);
|
2018-11-05 14:29:06 +03:00
|
|
|
goto out;
|
2012-11-02 22:16:37 +04:00
|
|
|
}
|
2012-11-02 08:20:46 +04:00
|
|
|
|
2012-11-05 01:09:43 +04:00
|
|
|
arg = CommandLineFindArgumentA(args, "fonts");
|
|
|
|
|
|
|
|
if (!arg->Value)
|
|
|
|
{
|
|
|
|
printf("CommandLineFindArgumentA: unexpected %s value\n", arg->Name);
|
2018-11-05 14:29:06 +03:00
|
|
|
goto out;
|
2012-11-05 01:09:43 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
arg = CommandLineFindArgumentA(args, "wallpaper");
|
|
|
|
|
|
|
|
if (arg->Value)
|
|
|
|
{
|
|
|
|
printf("CommandLineFindArgumentA: unexpected %s value\n", arg->Name);
|
2018-11-05 14:29:06 +03:00
|
|
|
goto out;
|
2012-11-05 01:09:43 +04:00
|
|
|
}
|
|
|
|
|
2012-11-07 03:49:02 +04:00
|
|
|
arg = CommandLineFindArgumentA(args, "help");
|
2012-11-02 08:58:32 +04:00
|
|
|
|
|
|
|
if (arg->Value)
|
2012-11-02 22:16:37 +04:00
|
|
|
{
|
|
|
|
printf("CommandLineFindArgumentA: unexpected %s value\n", arg->Name);
|
2018-11-05 14:29:06 +03:00
|
|
|
goto out;
|
2012-11-02 22:16:37 +04:00
|
|
|
}
|
2012-11-02 08:20:46 +04:00
|
|
|
|
2012-11-05 01:09:43 +04:00
|
|
|
arg = args;
|
2017-11-14 18:10:52 +03:00
|
|
|
errno = 0;
|
2012-11-05 01:09:43 +04:00
|
|
|
|
|
|
|
do
|
|
|
|
{
|
|
|
|
if (!(arg->Flags & COMMAND_LINE_VALUE_PRESENT))
|
|
|
|
continue;
|
|
|
|
|
|
|
|
printf("Argument: %s\n", arg->Name);
|
2019-11-06 17:24:51 +03:00
|
|
|
CommandLineSwitchStart(arg) CommandLineSwitchCase(arg, "v")
|
2012-11-05 01:09:43 +04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
CommandLineSwitchCase(arg, "w")
|
|
|
|
{
|
2017-11-14 18:10:52 +03:00
|
|
|
width = strtol(arg->Value, NULL, 0);
|
|
|
|
|
|
|
|
if (errno != 0)
|
2018-11-05 14:29:06 +03:00
|
|
|
goto out;
|
2012-11-05 01:09:43 +04:00
|
|
|
}
|
|
|
|
CommandLineSwitchCase(arg, "h")
|
|
|
|
{
|
2017-11-14 18:10:52 +03:00
|
|
|
height = strtol(arg->Value, NULL, 0);
|
|
|
|
|
|
|
|
if (errno != 0)
|
2018-11-05 14:29:06 +03:00
|
|
|
goto out;
|
2012-11-05 01:09:43 +04:00
|
|
|
}
|
2021-07-06 12:35:43 +03:00
|
|
|
CommandLineSwitchCase(arg, "valuelist")
|
|
|
|
{
|
2024-01-23 18:49:54 +03:00
|
|
|
char** p = NULL;
|
|
|
|
size_t count = 0;
|
2021-07-06 12:35:43 +03:00
|
|
|
p = CommandLineParseCommaSeparatedValuesEx(arg->Name, arg->Value, &count);
|
|
|
|
free(p);
|
|
|
|
|
|
|
|
if (!p || count != 3)
|
|
|
|
{
|
|
|
|
printf("CommandLineParseCommaSeparatedValuesEx: invalid p or count (%" PRIuz
|
|
|
|
"!=3)\n",
|
|
|
|
count);
|
|
|
|
goto out;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
CommandLineSwitchCase(arg, "valuelist-empty")
|
|
|
|
{
|
2024-01-23 18:49:54 +03:00
|
|
|
char** p = NULL;
|
|
|
|
size_t count = 0;
|
2021-07-06 12:35:43 +03:00
|
|
|
p = CommandLineParseCommaSeparatedValuesEx(arg->Name, arg->Value, &count);
|
|
|
|
free(p);
|
|
|
|
|
|
|
|
if (!p || count != 1)
|
|
|
|
{
|
|
|
|
printf("CommandLineParseCommaSeparatedValuesEx: invalid p or count (%" PRIuz
|
|
|
|
"!=1)\n",
|
|
|
|
count);
|
|
|
|
goto out;
|
|
|
|
}
|
|
|
|
}
|
2012-11-05 01:09:43 +04:00
|
|
|
CommandLineSwitchDefault(arg)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
CommandLineSwitchEnd(arg)
|
2019-11-06 17:24:51 +03:00
|
|
|
} while ((arg = CommandLineFindNextArgumentA(arg)) != NULL);
|
2012-11-05 01:09:43 +04:00
|
|
|
|
|
|
|
if ((width != 1024) || (height != 768))
|
|
|
|
{
|
2019-11-06 17:24:51 +03:00
|
|
|
printf("Unexpected width and height: Actual: (%ldx%ld), Expected: (1024x768)\n", width,
|
|
|
|
height);
|
2018-11-05 14:29:06 +03:00
|
|
|
goto out;
|
2012-11-05 01:09:43 +04:00
|
|
|
}
|
2018-11-05 14:29:06 +03:00
|
|
|
ret = 0;
|
2012-11-05 01:09:43 +04:00
|
|
|
|
2018-11-05 14:29:06 +03:00
|
|
|
out:
|
2019-11-06 17:24:51 +03:00
|
|
|
string_list_free(command_line);
|
2022-02-23 16:49:03 +03:00
|
|
|
|
|
|
|
if (!TestCommandLineParseCommaSeparatedValuesEx())
|
|
|
|
return -1;
|
2019-11-06 17:24:51 +03:00
|
|
|
return ret;
|
2012-11-02 08:20:46 +04:00
|
|
|
}
|