aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-27 11:27:23 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-27 11:27:23 +0200
commit20fc18ddcc0a8d18993aadf7413aeb6ca0395e7c (patch)
tree6ff9c991957c18b2737d84ae8b7aa682da2060cd /src
parentm (diff)
downloadargparser-20fc18ddcc0a8d18993aadf7413aeb6ca0395e7c.tar.gz
argparser-20fc18ddcc0a8d18993aadf7413aeb6ca0395e7c.tar.bz2
argparser-20fc18ddcc0a8d18993aadf7413aeb6ca0395e7c.tar.xz
derp
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/ArgParser.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ArgParser.java b/src/ArgParser.java
index dbddd07..6983f19 100644
--- a/src/ArgParser.java
+++ b/src/ArgParser.java
@@ -836,7 +836,7 @@ public class ArgParser
if (maxfirstlen < opt.alternatives[0].length())
maxfirstlen = opt.alternatives[0].length();
}
- empty += " ";
+ String empty = " ";
while (empty.length() < maxfirstlen)
empty += empty;
empty = empty.substring(0, maxfirstlen);
@@ -875,8 +875,7 @@ public class ArgParser
col += 8 - ((col - 4) & 7);
int index = 0;
- if (maxfirstlen == 0)
- empty = " ";
+ empty += " ";
while (empty.length() < col)
empty += empty;
empty = empty.substring(0, col);