mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-28 17:21:36 +02:00
sandbox: Correct help message <arg> garbling
The <arg> is displayed for options with no argument, and omitted for those with an argument. Swap this around. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
77595c6d9e
commit
6ebcab8de7
@ -50,9 +50,9 @@ int sandbox_early_getopt_check(void)
|
||||
|
||||
/* then the long flag */
|
||||
if (opt->has_arg)
|
||||
printf("--%-*s", max_noarg_len, opt->flag);
|
||||
else
|
||||
printf("--%-*s <arg> ", max_arg_len, opt->flag);
|
||||
else
|
||||
printf("--%-*s", max_noarg_len, opt->flag);
|
||||
|
||||
/* finally the help text */
|
||||
printf(" %s\n", opt->help);
|
||||
|
Loading…
x
Reference in New Issue
Block a user