Commit f63b868e authored by Rusty Russell's avatar Rusty Russell

opt: print usage correctly for early args.

Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent fc8784e0
......@@ -110,7 +110,7 @@ static char *add_desc(char *base, size_t *len, size_t *max,
base = add_str(base, len, max, opt->names);
off = strlen(opt->names);
if (opt->type == OPT_HASARG
if ((opt->type & OPT_HASARG)
&& !strchr(opt->names, ' ')
&& !strchr(opt->names, '=')) {
base = add_str(base, len, max, " <arg>");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment