Add the /help option to the helpmsg command too.

svn path=/trunk/; revision=63591
This commit is contained in:
Eric Kohl 2014-06-10 22:36:31 +00:00
parent bd4dce67d1
commit 9a92cc636a

View file

@ -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)
{