aboutsummaryrefslogtreecommitdiffstats
path: root/src/ArgParser.java
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-18 14:04:57 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-18 14:04:57 +0200
commita19f0e31972c1f5f1f86a510ff845fc89fbfd8f5 (patch)
tree083fea835e78056fe960432466ee3d914122fea9 /src/ArgParser.java
parentupdate gitignore with jar (diff)
downloadargparser-a19f0e31972c1f5f1f86a510ff845fc89fbfd8f5.tar.gz
argparser-a19f0e31972c1f5f1f86a510ff845fc89fbfd8f5.tar.bz2
argparser-a19f0e31972c1f5f1f86a510ff845fc89fbfd8f5.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/ArgParser.java')
-rw-r--r--src/ArgParser.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ArgParser.java b/src/ArgParser.java
index 728e63c..bb651f6 100644
--- a/src/ArgParser.java
+++ b/src/ArgParser.java
@@ -849,7 +849,7 @@ public class ArgParser
first = empty;
else
first += empty.substring(first.length());
- String line = " \033[02m" + first + "\033[22m %colour%" + last;
+ String line = " \033[02m" + first + "\033[22m \0" + last;
l += first.length() + 6 + last.length();
if (opt instanceof Variadic)
{ line += " [\033[04m" + opt.argument + "\033[24m...]";
@@ -874,7 +874,7 @@ public class ArgParser
continue;
boolean first = true;
final String colour = (index & 1) == 0 ? "36" : "34";
- { String line = lines.get(index).replace("%colour%", "\033[" + colour + ";01m");
+ { String line = lines.get(index).replace("\0", "\033[" + colour + ";01m");
line += empty.substring(lens.get(index)[0]);
this.print(line, false);
}