diff options
author | Peter Tyser <ptyser@xes-inc.com> | 2009-01-27 18:03:10 -0600 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-01-28 08:43:45 +0100 |
commit | 62c3ae7c6ef215b1afa614abdf61acf077752207 (patch) | |
tree | dac70a1eebda8bb6c05b95db3a7bebffeff94b3b /common/command.c | |
parent | 84cde2bb409c07c6ef36a192d194359d4e9ccd70 (diff) |
Standardize command usage messages with cmd_usage()
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Diffstat (limited to 'common/command.c')
-rw-r--r-- | common/command.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/command.c b/common/command.c index a4a978c5fdc..c3966484f9a 100644 --- a/common/command.c +++ b/common/command.c @@ -379,6 +379,11 @@ cmd_tbl_t *find_cmd (const char *cmd) return find_cmd_tbl(cmd, &__u_boot_cmd_start, len); } +void cmd_usage(cmd_tbl_t *cmdtp) +{ + printf("Usage:\n%s\n", cmdtp->usage); +} + #ifdef CONFIG_AUTO_COMPLETE int var_complete(int argc, char *argv[], char last_char, int maxv, char *cmdv[]) |