aboutsummaryrefslogtreecommitdiffstats
path: root/src/ArgParser.java
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ArgParser.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ArgParser.java b/src/ArgParser.java
index ac37a93..dbddd07 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();
}
- String empty = " ";
+ empty += " ";
while (empty.length() < maxfirstlen)
empty += empty;
empty = empty.substring(0, maxfirstlen);
@@ -874,6 +874,9 @@ public class ArgParser
col = len[0];
col += 8 - ((col - 4) & 7);
int index = 0;
+
+ if (maxfirstlen == 0)
+ empty = " ";
while (empty.length() < col)
empty += empty;
empty = empty.substring(0, col);