[U-Boot] [PATCH 1/2] Make "usage" messages more helpful.

Wolfgang Denk wd at denx.de
Fri Jun 5 00:19:48 CEST 2009


Hello,

In message <1243185450-20518-1-git-send-email-wd at denx.de> you wrote:
> 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 at denx.de>
> ---
> Please help test this patch - many boards have developed their own
> style, and this affects them all.
> 
> Resent, by accident the original sender address got garbled.
> 
>  common/command.c  |   33 ++++++++++++++++-----------------
>  include/command.h |    2 +-
>  2 files changed, 17 insertions(+), 18 deletions(-)

Apoplied to next.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Systems programmers are the high priests of a low cult.
                                                       -- R.S. Barton


More information about the U-Boot mailing list