diff options
author | Wolfgang Denk <wd@denx.de> | 2009-05-24 19:17:29 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-06-12 20:45:48 +0200 |
commit | 94796d8544d4248028141bad11c6a74b840e9d6e (patch) | |
tree | 4608436c83a75470b86a144a020b388b5d5c91c8 /include/command.h | |
parent | 4c94f6c54bbc4dc5f418da01d8ec01e2adf636be (diff) | |
download | u-boot-midas-94796d8544d4248028141bad11c6a74b840e9d6e.tar.gz u-boot-midas-94796d8544d4248028141bad11c6a74b840e9d6e.tar.bz2 u-boot-midas-94796d8544d4248028141bad11c6a74b840e9d6e.zip |
Make "usage" messages more helpful.
In case of incorrect command invocations U-Boot used to print pretty
useless "usage" messages, for example:
=> nand markbad
Usage:
nand - NAND sub-system
In the result, the user would have to run the "help" command to get
the (available) information about correct command usage. Change this,
so that this information gets always printed.
Note that this changes the user interface of all commands, but
hopefully to the better.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'include/command.h')
-rw-r--r-- | include/command.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/command.h b/include/command.h index bd47853925..55caa6eaf8 100644 --- a/include/command.h +++ b/include/command.h @@ -71,7 +71,7 @@ int _do_help (cmd_tbl_t *cmd_start, int cmd_items, cmd_tbl_t * cmdtp, int cmd_tbl_t *find_cmd(const char *cmd); cmd_tbl_t *find_cmd_tbl (const char *cmd, cmd_tbl_t *table, int table_len); -extern void cmd_usage(cmd_tbl_t *cmdtp); +extern int cmd_usage(cmd_tbl_t *cmdtp); #ifdef CONFIG_AUTO_COMPLETE extern void install_auto_complete(void); |