From: Pavel Charvat Date: Thu, 6 Feb 2014 11:17:34 +0000 (+0100) Subject: Opt: Fixed a bug in positional arguments. X-Git-Tag: v6.0~67 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=5a99f12436061db5175ea62d7918c334dd7b62f3;p=libucw.git Opt: Fixed a bug in positional arguments. --- 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); } }