diff options
author | Wolfgang Denk <wd@denx.de> | 2013-02-20 04:53:16 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-03-12 12:43:31 -0400 |
commit | 7d85591dda47f62e73d878d2d0ea5bd0ff2528ad (patch) | |
tree | f001c7711f1a93669cdef38c3213669b70e1abba /board/denx | |
parent | 01fac041cb32408a4fc5f4617381da6ec609a8dc (diff) | |
download | u-boot-imx-7d85591dda47f62e73d878d2d0ea5bd0ff2528ad.zip u-boot-imx-7d85591dda47f62e73d878d2d0ea5bd0ff2528ad.tar.gz u-boot-imx-7d85591dda47f62e73d878d2d0ea5bd0ff2528ad.tar.bz2 |
env: fix "env ask" command
The "env ask" traditionally uses a somewhat awkward syntax:
env ask name [message ...] [size]
So far, when a mesage was given, you always also had to enter a size.
If you forgot to do that, the command would terminate without any
indication of the problem.
To avoid incompatible changes of the interface, we now check the last
argument if it can be converted into a decimal number. If this is the
case, we assume it is a size; otherwise we treat it as part of the
message.
Also, add a space after the message fore easier reading,
and clean up help mesage.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/denx')
0 files changed, 0 insertions, 0 deletions