Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0-beta-6
-
Fix Version/s: 1.0-beta-7
-
Component/s: command line processing
-
Labels:None
-
Environment:Windows 2000
-
Number of attachments :
Description
1. Create this groovy script and name it "x.groovy":
print args[0]
2. Execute this command:
groovy x.groovy -5 7
We expect "-5" to be printed, but "7" is printed. I guess groovy is treating -5 as an argument to groovy. But it comes after the script filename.
reproducable in beta 6 but seems to be fixed in beta 7