mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:12:59 +00:00
[CMD]
Give help for the "help" command. svn path=/trunk/; revision=59393
This commit is contained in:
parent
6536e07d53
commit
55e05466fb
20 changed files with 131 additions and 54 deletions
|
@ -543,13 +543,20 @@ INT CommandRem (LPTSTR param)
|
|||
|
||||
INT CommandShowCommands (LPTSTR param)
|
||||
{
|
||||
PrintCommandList ();
|
||||
PrintCommandList();
|
||||
return 0;
|
||||
}
|
||||
|
||||
INT CommandShowCommandsDetail (LPTSTR param)
|
||||
INT CommandShowCommandsDetail(LPTSTR param)
|
||||
{
|
||||
/* If a param was send, display help of correspondent command */
|
||||
/* 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);
|
||||
|
@ -557,7 +564,7 @@ INT CommandShowCommandsDetail (LPTSTR param)
|
|||
/* Else, display detailed commands list */
|
||||
else
|
||||
{
|
||||
PrintCommandListDetail ();
|
||||
PrintCommandListDetail();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue