diff options
Diffstat (limited to 'lib/utils/parse_options.c')
| -rw-r--r-- | lib/utils/parse_options.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/utils/parse_options.c b/lib/utils/parse_options.c index 6928e481..b891066b 100644 --- a/lib/utils/parse_options.c +++ b/lib/utils/parse_options.c @@ -39,6 +39,9 @@ void parse_usage_and_die(const char * const * usage, const struct options *opt) if (opt->long_name) pos += fprintf(stderr, "--%s", opt->long_name); + if (opt->argh) + pos += fprintf(stderr, " <%s>", opt->argh); + if (pos <= USAGE_OPTS_WIDTH) pad = USAGE_OPTS_WIDTH - pos; else |
