2 * PROJECT: ReactOS DiskPart
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: base/system/diskpart/help.c
5 * PURPOSE: Manages all the partitions of the OS in an interactive way.
6 * PROGRAMMERS: Lee Schroeder
13 * shows all the available commands and basic descriptions for diskpart
15 VOID
help_cmdlist(VOID
)
19 /* Print the header information */
20 ConResPuts(StdOut
, IDS_APP_HEADER
);
21 ConPuts(StdOut
, L
"\n");
23 /* List all the commands and the basic descriptions */
24 for (cmdptr
= cmds
; cmdptr
->name
; cmdptr
++)
25 ConResPuts(StdOut
, cmdptr
->help_desc
);
27 ConPuts(StdOut
, L
"\n");
30 /* help_main(char *arg):
31 * main entry point for the help command. Gives help to users who needs it.
33 BOOL
help_main(INT argc
, LPWSTR
*argv
)
43 /* Scan internal command table */
44 for (cmdptr
= cmds
; cmdptr
->name
; cmdptr
++)
46 if (_wcsicmp(argv
[1], cmdptr
->name
) == 0)
48 ConResPuts(StdOut
, cmdptr
->help
);