Skip to content

Commit 694ad8a

Browse files
committed
modify:does not case sensitive for start parameter
1 parent 43d6f05 commit 694ad8a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

XEngine_Source/XEngine_MQServiceApp/MQService_Config.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,56 +18,56 @@ bool MQ_Service_Parament(int argc, char** argv, XENGINE_SERVERCONFIG* pSt_Startl
1818

1919
for (int i = 0;i < argc;i++)
2020
{
21-
if (0 == _tcsxicmp("-h",argv[i]))
21+
if (0 == _tcsxcmp("-h",argv[i]))
2222
{
2323
MQ_Service_ParamentHelp();
2424
return false;
2525
}
26-
else if (0 == _tcsxicmp("-v",argv[i]))
26+
else if (0 == _tcsxcmp("-v",argv[i]))
2727
{
2828
printf("Version:%s\n", st_ServiceCfg.st_XVer.pStl_ListStorage->front().c_str());
2929
return false;
3030
}
31-
else if (0 == _tcsxicmp("-tp",argv[i]))
31+
else if (0 == _tcsxcmp("-tp",argv[i]))
3232
{
3333
pSt_StartlParam->nTCPPort = _ttxoi(argv[++i]);
3434
}
35-
else if (0 == _tcsxicmp("-hp",argv[i]))
35+
else if (0 == _tcsxcmp("-hp",argv[i]))
3636
{
3737
pSt_StartlParam->nHttpPort = _ttxoi(argv[++i]);
3838
}
39-
else if (0 == _tcsxicmp("-wp", argv[i]))
39+
else if (0 == _tcsxcmp("-wp", argv[i]))
4040
{
4141
pSt_StartlParam->nWSPort = _ttxoi(argv[++i]);
4242
}
43-
else if (0 == _tcsxicmp("-mp", argv[i]))
43+
else if (0 == _tcsxcmp("-mp", argv[i]))
4444
{
4545
pSt_StartlParam->nMQTTPort = _ttxoi(argv[++i]);
4646
}
47-
else if (0 == _tcsxicmp("-d",argv[i]))
47+
else if (0 == _tcsxcmp("-d",argv[i]))
4848
{
4949
pSt_StartlParam->bDeamon = _ttxoi(argv[++i]);
5050
}
51-
else if (0 == _tcsxicmp("-t", argv[i]))
51+
else if (0 == _tcsxcmp("-t", argv[i]))
5252
{
5353
bIsTest = true;
5454
}
55-
else if (0 == _tcsxicmp("-lt", argv[i]))
55+
else if (0 == _tcsxcmp("-lt", argv[i]))
5656
{
5757
pSt_StartlParam->st_XLog.nLogType = _ttxoi(argv[++i]);
5858
}
59-
else if (0 == _tcsxicmp("-l", argv[i]))
59+
else if (0 == _tcsxcmp("-l", argv[i]))
6060
{
6161
LPCXSTR lpszLogLevel = argv[++i];
62-
if (0 == _tcsxicmp("debug", lpszLogLevel))
62+
if (0 == _tcsxcmp("debug", lpszLogLevel))
6363
{
6464
pSt_StartlParam->st_XLog.nLogLeave = XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_DETAIL;
6565
}
66-
else if (0 == _tcsxicmp("detail", lpszLogLevel))
66+
else if (0 == _tcsxcmp("detail", lpszLogLevel))
6767
{
6868
pSt_StartlParam->st_XLog.nLogLeave = XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_DETAIL;
6969
}
70-
else if (0 == _tcsxicmp("info", lpszLogLevel))
70+
else if (0 == _tcsxcmp("info", lpszLogLevel))
7171
{
7272
pSt_StartlParam->st_XLog.nLogLeave = XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO;
7373
}

0 commit comments

Comments
 (0)