]> mj.ucw.cz Git - libucw.git/commitdiff
Opt: Fixed a bug in positional arguments.
authorPavel Charvat <pchar@ucw.cz>
Thu, 6 Feb 2014 11:17:34 +0000 (12:17 +0100)
committerPavel Charvat <pchar@ucw.cz>
Thu, 6 Feb 2014 11:17:34 +0000 (12:17 +0100)
ucw/opt.c

index 7eadbd64c4efe54c8efa5f550760d0f8e18d3449..d61433d7342d30c2be8ba91ed4ea650c74b16f7c 100644 (file)
--- 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);
   }
 }