diff options
| author | Wolfgang Denk <wd@denx.de> | 2009-05-24 17:06:54 +0200 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2009-06-12 20:47:16 +0200 | 
| commit | a89c33db96a1e55319a286dd4c3c05ca64ac6bfd (patch) | |
| tree | 512938dbd159b7262aad30e4304cfc05c350226c /common/command.c | |
| parent | 94796d8544d4248028141bad11c6a74b840e9d6e (diff) | |
| download | olio-uboot-2014.01-a89c33db96a1e55319a286dd4c3c05ca64ac6bfd.tar.xz olio-uboot-2014.01-a89c33db96a1e55319a286dd4c3c05ca64ac6bfd.zip | |
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>
Diffstat (limited to 'common/command.c')
| -rw-r--r-- | common/command.c | 15 | 
1 files changed, 7 insertions, 8 deletions
| diff --git a/common/command.c b/common/command.c index 16f3afe39..b57f8dfc8 100644 --- a/common/command.c +++ b/common/command.c @@ -39,7 +39,7 @@ do_version (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  U_BOOT_CMD(  	version,	1,		1,	do_version,  	"print monitor version", -	NULL +	""  );  #if defined(CONFIG_CMD_ECHO) @@ -73,7 +73,7 @@ U_BOOT_CMD(  	echo,	CONFIG_SYS_MAXARGS,	1,	do_echo,  	"echo args to console",  	"[args..]\n" -	"    - echo args to console; \\c suppresses newline\n" +	"    - echo args to console; \\c suppresses newline"  );  #endif @@ -204,8 +204,7 @@ do_test (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  U_BOOT_CMD(  	test,	CONFIG_SYS_MAXARGS,	1,	do_test,  	"minimal test like /bin/sh", -	"[args..]\n" -	"    - test functionality\n" +	"[args..]"  );  int @@ -223,7 +222,7 @@ do_exit (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  U_BOOT_CMD(  	exit,	2,	1,	do_exit,  	"exit script", -	"    - exit functionality\n" +	""  ); @@ -314,15 +313,15 @@ U_BOOT_CMD(  	"'help' prints online help for the monitor commands.\n\n"  	"Without arguments, it prints a short usage message for all commands.\n\n"  	"To get detailed help information for specific commands you can type\n" -  "'help' with one or more command names as arguments.\n" +	"'help' with one or more command names as arguments."  ); -/* This do not ust the U_BOOT_CMD macro as ? can't be used in symbol names */ +/* This does not use the U_BOOT_CMD macro as ? can't be used in symbol names */  #ifdef  CONFIG_SYS_LONGHELP  cmd_tbl_t __u_boot_cmd_question_mark Struct_Section = {  	"?",	CONFIG_SYS_MAXARGS,	1,	do_help,  	"alias for 'help'", -	NULL +	""  };  #else  cmd_tbl_t __u_boot_cmd_question_mark Struct_Section = { |