Skip to content

Commit 33a5114

Browse files
committed
usage: allow ADOPT_USAGE_SHOW_LONG for value types
1 parent a54f589 commit 33a5114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adopt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ int adopt_usage_fprint(
336336
if (error < 0)
337337
goto done;
338338

339-
if (spec->type == ADOPT_VALUE && spec->alias)
339+
if (spec->type == ADOPT_VALUE && spec->alias && !(spec->usage & ADOPT_USAGE_SHOW_LONG))
340340
error = fprintf(file, "-%c <%s>", spec->alias, spec->value_name);
341341
else if (spec->type == ADOPT_VALUE)
342342
error = fprintf(file, "--%s=<%s>", spec->name, spec->value_name);

0 commit comments

Comments
 (0)