incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1401819 - /incubator/flex/sdk/branches/develop/mustella/java/src/utils/ArgumentParser.java
Date Wed, 24 Oct 2012 18:45:29 GMT
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
 			}



Mime
View raw message