Author: ekohl
Date: Tue Jun 10 22:36:31 2014
New Revision: 63591
URL:
http://svn.reactos.org/svn/reactos?rev=63591&view=rev
Log:
[NET]
Add the /help option to the helpmsg command too.
Modified:
trunk/reactos/base/applications/network/net/cmdHelpMsg.c
Modified: trunk/reactos/base/applications/network/net/cmdHelpMsg.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/net/cmdHelpMsg.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/net/cmdHelpMsg.c [iso-8859-1] Tue Jun 10
22:36:31 2014
@@ -16,11 +16,21 @@
LPWSTR endptr;
LPWSTR lpBuffer;
LONG errNum;
+ INT i;
if (argc < 3)
{
PrintResourceString(IDS_HELPMSG_SYNTAX);
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);