diff options
Diffstat (limited to 'src')
-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; } |