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>
diff --git a/board/bc3450/cmd_bc3450.c b/board/bc3450/cmd_bc3450.c
index aa46e58..271ffb1 100644
--- a/board/bc3450/cmd_bc3450.c
+++ b/board/bc3450/cmd_bc3450.c
@@ -198,7 +198,7 @@
"\n"
" - prints the state of the dip switch and/or\n"
" external configuration inputs as hex value.\n"
- " - \"Config 1\" is the LSB\n");
+ " - \"Config 1\" is the LSB");
/*
@@ -229,7 +229,7 @@
U_BOOT_CMD (buz, 2, 1, cmd_buz,
"turns buzzer on/off",
- "\n" "buz <on/off>\n" " - turns the buzzer on or off\n");
+ "\n" "buz <on/off>\n" " - turns the buzzer on or off");
#endif /* CONFIG_BC3450_BUZZER */
@@ -326,14 +326,14 @@
"\n"
"fp bl <on/off>\n"
" - turns the CCFL backlight of the display on/off\n"
- "fp <on/off>\n" " - turns the whole display on/off\n"
+ "fp <on/off>\n" " - turns the whole display on/off"
#ifdef CONFIG_BC3450_CRT
+ "\n"
"fp crt <on/off>\n"
- " - enables/disables the crt output (debug only)\n"
+ " - enables/disables the crt output (debug only)"
#endif /* CONFIG_BC3450_CRT */
);
-
/*
* temp - DS1620 thermometer
*/
@@ -524,7 +524,7 @@
U_BOOT_CMD (temp, 3, 1, cmd_temp,
"print current temperature",
- "\n" "temp\n" " - print current temperature\n");
+ "\n" "temp\n" " - print current temperature");
#ifdef CONFIG_BC3450_CAN
/*
@@ -818,10 +818,11 @@
U_BOOT_CMD (test, 2, 1, cmd_test, "unit test routines", "\n"
#ifdef CONFIG_BC3450_CAN
- "test can\n"
- " - connect CAN1 (X8) with CAN2 (X9) for this test\n"
+ "test can\n"
+ " - connect CAN1 (X8) with CAN2 (X9) for this test\n"
#endif /* CONFIG_BC3450_CAN */
- "test unit-off\n"
- " - turns off the BC3450 unit\n"
- " WARNING: Unsaved environment variables will be lost!\n");
+ "test unit-off\n"
+ " - turns off the BC3450 unit\n"
+ " WARNING: Unsaved environment variables will be lost!"
+);
#endif