You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2012/10/24 20:45:29 UTC

svn commit: r1401819 - /incubator/flex/sdk/branches/develop/mustella/java/src/utils/ArgumentParser.java

Author: pent
Date: Wed Oct 24 18:45:29 2012
New Revision: 1401819

URL: http://svn.apache.org/viewvc?rev=1401819&view=rev
Log:
There are also arguments that being with + (plus) in addition to - (hyphen).

Modified:
    incubator/flex/sdk/branches/develop/mustella/java/src/utils/ArgumentParser.java

Modified: incubator/flex/sdk/branches/develop/mustella/java/src/utils/ArgumentParser.java
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/java/src/utils/ArgumentParser.java?rev=1401819&r1=1401818&r2=1401819&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/java/src/utils/ArgumentParser.java (original)
+++ incubator/flex/sdk/branches/develop/mustella/java/src/utils/ArgumentParser.java Wed Oct 24 18:45:29 2012
@@ -151,7 +151,7 @@ public class ArgumentParser {
 		{
 			char c = working.charAt(i);
 			if( c == ' ' ) continue;
-			if( c == '-' ) {
+			if( c == '-' || c == '+' ) {
 				return i;
 			}
 		}
@@ -208,6 +208,9 @@ public class ArgumentParser {
 				char prev = working.charAt(i-1);
 				if( prev == ' ' ) break;
 			}
+			else if( c == '+' ) {
+				break;
+			}
 			else {
 				if( c != ' ' ) lastPos = i; // the last non-blank character
 			}