General help message cleanup
Many of the help messages were not really helpful; for example, many commands that take no arguments would not print a correct synopsis line, but "No additional help available." which is not exactly wrong, but not helpful either. Commit ``Make "usage" messages more helpful.'' changed this partially. But it also became clear that lots of "Usage" and "Help" messages (fields "usage" and "help" in struct cmd_tbl_s respective) were actually redundant. This patch cleans this up - for example: Before: => help dtt dtt - Digital Thermometer and Thermostat Usage: dtt - Read temperature from digital thermometer and thermostat. After: => help dtt dtt - Read temperature from Digital Thermometer and Thermostat Usage: dtt Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
@@ -439,14 +439,14 @@ static int do_inkadiag_help(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
|
||||
|
||||
cmd_tbl_t cmd_inkadiag_sub[] = {
|
||||
U_BOOT_CMD_MKENT(io, 1, 1, do_inkadiag_io, "read digital input",
|
||||
"<drawer1|drawer2|other> [value] - get or set specified signal\n"),
|
||||
"<drawer1|drawer2|other> [value] - get or set specified signal"),
|
||||
U_BOOT_CMD_MKENT(serial, 4, 1, do_inkadiag_serial, "test serial port",
|
||||
"<num> <mode> <baudrate> <msg> - test uart num [0..11] in mode\n"
|
||||
"and baudrate with msg\n"),
|
||||
"and baudrate with msg"),
|
||||
U_BOOT_CMD_MKENT(buzzer, 2, 1, do_inkadiag_buzzer, "activate buzzer",
|
||||
"<period> <freq> - turn buzzer on for period ms with freq hz\n"),
|
||||
"<period> <freq> - turn buzzer on for period ms with freq hz"),
|
||||
U_BOOT_CMD_MKENT(help, 4, 1, do_inkadiag_help, "get help",
|
||||
"[command] - get help for command\n"),
|
||||
"[command] - get help for command"),
|
||||
};
|
||||
|
||||
static int do_inkadiag_help(cmd_tbl_t *cmdtp, int flag,
|
||||
@@ -483,7 +483,7 @@ U_BOOT_CMD(inkadiag, 6, 1, do_inkadiag,
|
||||
"inkadiag - inka diagnosis\n",
|
||||
"[inkadiag what ...]\n"
|
||||
" - perform a diagnosis on inka hardware\n"
|
||||
"'inkadiag' performs hardware tests.\n\n");
|
||||
"'inkadiag' performs hardware tests.");
|
||||
|
||||
/* Relocate the command table function pointers when running in RAM */
|
||||
int inkadiag_init_r (void) {
|
||||
|
||||
Reference in New Issue
Block a user