diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-08-26 13:24:35 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-08-26 13:24:35 +0200 |
commit | dd455120a3d5cadf20931918d733f73abd7219a5 (patch) | |
tree | 125d4180d0590bd393e42e9160f58f6dd6a6f860 | |
parent | m (diff) | |
download | argparser-dd455120a3d5cadf20931918d733f73abd7219a5.tar.gz argparser-dd455120a3d5cadf20931918d733f73abd7219a5.tar.bz2 argparser-dd455120a3d5cadf20931918d733f73abd7219a5.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r-- | src/argparser/ArgParser.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/argparser/ArgParser.java b/src/argparser/ArgParser.java index ddc14ac..7a95c46 100644 --- a/src/argparser/ArgParser.java +++ b/src/argparser/ArgParser.java @@ -1286,8 +1286,8 @@ public class ArgParser final Option option = this.optmap.get(optqueue.get(i)); final String opt = option.standard; final String arg = argqueue.size() > i ? argqueue.get(i) : null; - if (len(argqueue) <= i) - option.trigger(optqueue.get(i), null); + if (argqueue.size() <= i) + ((Argumented)option).trigger(optqueue.get(i), null); i++; if (this.opts.get(opt) == null) this.opts.put(opt, new String[] {}); |