]> git.ipfire.org Git - people/ms/u-boot.git/commit
Make "usage" messages more helpful.
authorWolfgang Denk <wd@denx.de>
Sun, 24 May 2009 17:17:29 +0000 (19:17 +0200)
committerWolfgang Denk <wd@denx.de>
Fri, 12 Jun 2009 18:45:48 +0000 (20:45 +0200)
commit94796d8544d4248028141bad11c6a74b840e9d6e
tree4608436c83a75470b86a144a020b388b5d5c91c8
parent4c94f6c54bbc4dc5f418da01d8ec01e2adf636be
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>
common/command.c
include/command.h