]> cloudbase.mooo.com Git - z180-stamp.git/blame - avr/cmd_help.c
enum command_ret_t --> typedef
[z180-stamp.git] / avr / cmd_help.c
CommitLineData
d684c216
L
1
2#include "common.h"
3#include "command.h"
4
d0581f88 5command_ret_t do_help(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
d684c216
L
6{
7 const int len = cmd_tbl_item_count();
8 return _do_help(cmd_tbl, len, cmdtp, flag, argc, argv);
9}
10
11
12#if 0
13
14U_BOOT_CMD(
15 help, CONFIG_SYS_MAXARGS, 1, do_help,
16 "print command description/usage",
17 "\n"
18 " - print brief description of all commands\n"
19 "help command ...\n"
20 " - print detailed usage of 'command'"
21);
22
23/* This does not use the U_BOOT_CMD macro as ? can't be used in symbol names */
24ll_entry_declare(cmd_tbl_t, question_mark, cmd) = {
25 "?", CONFIG_SYS_MAXARGS, 1, do_help,
26 "alias for 'help'",
27#ifdef CONFIG_SYS_LONGHELP
28 ""
29#endif /* CONFIG_SYS_LONGHELP */
30};
31
32#endif