aboutsummaryrefslogtreecommitdiffstats
path: root/src/ArgParser.java
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-27 05:05:59 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-27 05:05:59 +0200
commit7aed6596bd60172bbebb8b66304794b996108069 (patch)
tree9fe50fd1ef227d09ec54c0281f60ecaf9a4b28de /src/ArgParser.java
parentm bug (diff)
downloadargparser-7aed6596bd60172bbebb8b66304794b996108069.tar.gz
argparser-7aed6596bd60172bbebb8b66304794b996108069.tar.bz2
argparser-7aed6596bd60172bbebb8b66304794b996108069.tar.xz
m bug fix + beginning of java test
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/ArgParser.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ArgParser.java b/src/ArgParser.java
index afac48c..ac37a93 100644
--- a/src/ArgParser.java
+++ b/src/ArgParser.java
@@ -1039,7 +1039,9 @@ public class ArgParser
{ sb.append(' ');
sb.append(file);
}
- this.message = sb.toString().substring(1);
+ this.message = sb.toString();
+ if (this.message.length() > 0)
+ this.message = this.message.substring(1);
if (this.unrecognisedCount > 5)
{ int more = this.unrecognisedCount - 5;