diff options
author | Miles Bader <miles@gnu.org> | 1995-10-12 19:58:14 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-10-12 19:58:14 +0000 |
commit | 91cf5500edbaab0dc9fc33d2be5ebe6b163e2c3b (patch) | |
tree | 082550f5d03448c7aad796a6e302ae3143134280 /libshouldbeinlibc/argp-parse.c | |
parent | c11a46da1f6e487cdc8d5fba3a0966b711201ad5 (diff) |
(argp_parse): Correctly mark short options as optional.
Diffstat (limited to 'libshouldbeinlibc/argp-parse.c')
-rw-r--r-- | libshouldbeinlibc/argp-parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libshouldbeinlibc/argp-parse.c b/libshouldbeinlibc/argp-parse.c index 60881c58..fa3da19f 100644 --- a/libshouldbeinlibc/argp-parse.c +++ b/libshouldbeinlibc/argp-parse.c @@ -218,7 +218,7 @@ argp_parse (struct argp *argp, int argc, char **argv, unsigned flags, if (real->arg) { *short_end++ = ':'; - if (! (real->flags & OPTION_ARG_OPTIONAL)) + if (real->flags & OPTION_ARG_OPTIONAL) *short_end++ = ':'; } *short_end = '\0'; /* keep 0 terminated */ |