diff options
author | midipix <writeonce@midipix.org> | 2022-12-21 14:11:26 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2022-12-21 14:11:26 +0000 |
commit | 2f5700dd80bf64e0a4314beb7d9a7f35a11996a4 (patch) | |
tree | 4652cd82faec2b93e26949e6836034a4688ee572 /src/internal/argv | |
parent | fe45b544fe4877a0c50c70b95f256e960903b4e8 (diff) | |
download | slibtool-2f5700dd80bf64e0a4314beb7d9a7f35a11996a4.tar.bz2 slibtool-2f5700dd80bf64e0a4314beb7d9a7f35a11996a4.tar.xz |
argv.h: argv_show_error(): refine the 'option X requires a value' error msg.
Diffstat (limited to 'src/internal/argv')
-rw-r--r-- | src/internal/argv/argv.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h index 2324c8f..6c4a914 100644 --- a/src/internal/argv/argv.h +++ b/src/internal/argv/argv.h @@ -563,7 +563,9 @@ static void argv_show_error(int fd, struct argv_ctx * ctx) opt_short_name[0] ? "-" : "", opt_short_name, opt_short_name[0] ? "," : "", - ctx->erropt->long_name ? "--" : "", + ctx->erropt->long_name + ? (ctx->erropt->flags & ARGV_OPTION_HYBRID_ONLY) ? "-" : "--" + : "", ctx->erropt->long_name, ctx->erropt->paradigm ? "one of the following values:" : "a value", ctx->erropt->paradigm ? "{" : "", |