Commit 4e1ca93b6bae34b68be9280b43bf0289d994656c

Authored by Peter Tyser
Committed by Wolfgang Denk
1 parent 6b8f5ad10f

cmd_help: General cleanup

Shorten the overly-verbose help message of 'help' and clean up some
redundant ifdefery while we're at it.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>

Showing 1 changed file with 7 additions and 14 deletions Side-by-side Diff

... ... @@ -33,26 +33,19 @@
33 33  
34 34 U_BOOT_CMD(
35 35 help, CONFIG_SYS_MAXARGS, 1, do_help,
36   - "print online help",
37   - "[command ...]\n"
38   - " - show help information (for 'command')\n"
39   - "'help' prints online help for the monitor commands.\n\n"
40   - "Without arguments, it prints a short usage message for all commands.\n\n"
41   - "To get detailed help information for specific commands you can type\n"
42   - "'help' with one or more command names as arguments."
  36 + "print command description/usage",
  37 + "\n"
  38 + " - print brief description of all commands\n"
  39 + "help command ...\n"
  40 + " - print detailed usage of 'command'"
43 41 );
44 42  
45 43 /* This does not use the U_BOOT_CMD macro as ? can't be used in symbol names */
46   -#ifdef CONFIG_SYS_LONGHELP
47 44 cmd_tbl_t __u_boot_cmd_question_mark Struct_Section = {
48 45 "?", CONFIG_SYS_MAXARGS, 1, do_help,
49 46 "alias for 'help'",
  47 +#ifdef CONFIG_SYS_LONGHELP
50 48 ""
51   -};
52   -#else
53   -cmd_tbl_t __u_boot_cmd_question_mark Struct_Section = {
54   - "?", CONFIG_SYS_MAXARGS, 1, do_help,
55   - "alias for 'help'"
56   -};
57 49 #endif /* CONFIG_SYS_LONGHELP */
  50 +};