diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-06-19 17:07:44 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-06-19 17:07:44 +0200 |
commit | 15b951c47154e6ce0352381f6463d15f72763452 (patch) | |
tree | f4d6737eb9e694c876b0aecbfcbac7902441fd5f | |
parent | m bug fix (diff) | |
download | argparser-15b951c47154e6ce0352381f6463d15f72763452.tar.gz argparser-15b951c47154e6ce0352381f6463d15f72763452.tar.bz2 argparser-15b951c47154e6ce0352381f6463d15f72763452.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r-- | src/ArgParser.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ArgParser.java b/src/ArgParser.java index 798f780..7e31f29 100644 --- a/src/ArgParser.java +++ b/src/ArgParser.java @@ -856,11 +856,11 @@ public class ArgParser first += empty.substring(first.length()); String line = " \033[02m" + first + "\033[22m \0" + last; l += first.length() + 6 + last.length(); - if (opt instanceof Variadic) + if (opt.getClass() == Variadic.class) { line += " [\033[04m" + opt.argument + "\033[24m...]"; l += opt.argument.length() + 6; } - else if (opt instanceof Argumented) + else if (opt.getClass() Argumented.class) { line += " \033[04m" + opt.argument + "\033[24m"; l += opt.argument.length() + 1; } |