We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ADOPT_USAGE_SHOW_LONG
1 parent a54f589 commit 33a5114Copy full SHA for 33a5114
adopt.c
@@ -336,7 +336,7 @@ int adopt_usage_fprint(
336
if (error < 0)
337
goto done;
338
339
- if (spec->type == ADOPT_VALUE && spec->alias)
+ if (spec->type == ADOPT_VALUE && spec->alias && !(spec->usage & ADOPT_USAGE_SHOW_LONG))
340
error = fprintf(file, "-%c <%s>", spec->alias, spec->value_name);
341
else if (spec->type == ADOPT_VALUE)
342
error = fprintf(file, "--%s=<%s>", spec->name, spec->value_name);
0 commit comments