mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
[NET]
Add the /help option to the helpmsg command too. svn path=/trunk/; revision=63591
This commit is contained in:
parent
bd4dce67d1
commit
9a92cc636a
1 changed files with 10 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue