Skip to content
Snippets Groups Projects
Commit 6ebcab8d authored by Simon Glass's avatar Simon Glass
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 77595c6d
No related branches found
No related tags found
No related merge requests found
...@@ -50,9 +50,9 @@ int sandbox_early_getopt_check(void) ...@@ -50,9 +50,9 @@ int sandbox_early_getopt_check(void)
/* then the long flag */ /* then the long flag */
if (opt->has_arg) if (opt->has_arg)
printf("--%-*s", max_noarg_len, opt->flag);
else
printf("--%-*s <arg> ", max_arg_len, opt->flag); printf("--%-*s <arg> ", max_arg_len, opt->flag);
else
printf("--%-*s", max_noarg_len, opt->flag);
/* finally the help text */ /* finally the help text */
printf(" %s\n", opt->help); printf(" %s\n", opt->help);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment