From 91cf5500edbaab0dc9fc33d2be5ebe6b163e2c3b Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 12 Oct 1995 19:58:14 +0000 Subject: (argp_parse): Correctly mark short options as optional. --- libshouldbeinlibc/argp-parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libshouldbeinlibc') 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 */ -- cgit v1.2.3