Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.7-rc-2
-
Fix Version/s: None
-
Component/s: command line processing
-
Labels:None
-
Environment:Mac OS, Ubuntu
-
Number of attachments :
Description
Tried to call 'groovy' with two command-line args: -c and -cp.
First, -cp isn't mentioned in the help (when typing 'groovy' alone).
Second, -cp must be given first, or a parsing error occurs. This sort of behavior is very hard to understand for a user (I had almost given up when I found this).
Issue Links
- relates to
-
GROOVY-1525
"groovy -help" doesn't mention -cp option (also groovysh, groovyconsole etc.)
-
Just wanted to add that support for -cp, -classpath options comes from startGroovy shell script, which is used by all command line programs - groovy shell, groovy console, groovyc, groovy, grape, etc. So, these options are available to all these programs but printed by none in their CLI help.
Inclusion of -cp, -classpath will need to be done in all of these.