mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[NET]
Add the /help option to the helpmsg command too. svn path=/trunk/; revision=63591
This commit is contained in:
@@ -16,6 +16,7 @@ INT cmdHelpMsg(INT argc, WCHAR **argv)
|
||||
LPWSTR endptr;
|
||||
LPWSTR lpBuffer;
|
||||
LONG errNum;
|
||||
INT i;
|
||||
|
||||
if (argc < 3)
|
||||
{
|
||||
@@ -23,6 +24,15 @@ INT cmdHelpMsg(INT argc, WCHAR **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
for (i = 2; i < argc; i++)
|
||||
{
|
||||
if (_wcsicmp(argv[i], L"/help") == 0)
|
||||
{
|
||||
PrintResourceString(IDS_HELPMSG_HELP);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
errNum = wcstol(argv[2], &endptr, 10);
|
||||
if (*endptr != 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user