diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-06-27 11:27:23 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-06-27 11:27:23 +0200 |
commit | 20fc18ddcc0a8d18993aadf7413aeb6ca0395e7c (patch) | |
tree | 6ff9c991957c18b2737d84ae8b7aa682da2060cd /src/ArgParser.java | |
parent | m (diff) | |
download | argparser-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/ArgParser.java')
-rw-r--r-- | src/ArgParser.java | 5 |
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); |