From 15b951c47154e6ce0352381f6463d15f72763452 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 19 Jun 2013 17:07:44 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/ArgParser.java | 4 ++-- 1 file 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; } -- cgit v1.2.3-70-g09d2