[CMD-HELP]

Add a help.exe utility to replace the old built-in command "help" in cmd.exe (i.e. do it the Win2k3 way).
This way, if somebody runs a personalized command-line environment which provides its own help command, one can use the personalized help command and not the standard one (e.g. the "help" command of RosBE).

Adapted by myself from a patch by Lee Schroeder.
CORE-5701 #resolve #comment Committed in revision 59832, thanks :) I use a trick to be able to compile the utility (use: ninja cmd_help) because doing "ninja help" has a signification in ninja (signaled by AmineKhaldi).

svn path=/trunk/; revision=59832
This commit is contained in:
Hermès Bélusca-Maïto 2013-08-26 12:45:34 +00:00
parent fc47517694
commit 51e2a35e96
27 changed files with 1657 additions and 33 deletions

View file

@ -547,26 +547,4 @@ INT CommandShowCommands (LPTSTR param)
return 0;
}
INT CommandShowCommandsDetail(LPTSTR param)
{
/* We display help for the help command */
if (!_tcsncmp(param, _T("/?"), 2))
{
ConOutResPaging(TRUE, STRING_HELP_HELP1);
return 0;
}
/* If a param was send, display help of corresponding command */
if (_tcslen(param))
{
DoCommand(param, _T("/?"), NULL);
}
/* Else, display detailed commands list */
else
{
PrintCommandListDetail();
}
return 0;
}
/* EOF */