From 5a99f12436061db5175ea62d7918c334dd7b62f3 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Thu, 6 Feb 2014 12:17:34 +0100 Subject: [PATCH] Opt: Fixed a bug in positional arguments. --- ucw/opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ucw/opt.c b/ucw/opt.c index 7eadbd64..d61433d7 100644 --- a/ucw/opt.c +++ b/ucw/opt.c @@ -300,7 +300,7 @@ static void opt_positional(struct opt_context * oc, char * value) { if (!opt) opt_failure("Too many positional arguments."); else { - opt->flags &= OPT_SEEN_AS_LONG; + opt->flags &= ~OPT_SEEN_AS_LONG; opt_parse_value(oc, opt, value); } } -- 2.39.2