|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface CommandLine
Represents the parsed command line options.
Field Summary | |
---|---|
java.lang.String |
AGENT_ARGUMENT
|
java.lang.String |
HELP_ARGUMENT
|
java.lang.String |
NOANSI_ARGUMENT
|
java.lang.String |
NON_INTERACTIVE_ARGUMENT
|
java.lang.String |
OFFLINE_ARGUMENT
|
java.lang.String |
REFRESH_DEPENDENCIES_ARGUMENT
|
java.lang.String |
STACKTRACE_ARGUMENT
|
java.lang.String |
VERBOSE_ARGUMENT
|
java.lang.String |
VERSION_ARGUMENT
|
Method Summary | |
---|---|
java.lang.String
|
getCommandName()
@return The command name specified |
java.lang.String
|
getEnvironment()
@return The environment specified |
java.util.List
|
getRemainingArgs()
@return The remaining arguments after the command name |
java.lang.String[]
|
getRemainingArgsArray()
@return The remaining arguments as an array |
java.lang.String
|
getRemainingArgsLineSeparated()
@return The remaining args separated by the line separator char |
java.lang.String
|
getRemainingArgsString()
@return The remaining args as one big string |
java.util.Properties
|
getSystemProperties()
@return The system properties specified |
java.util.Map
|
getUndeclaredOptions()
|
boolean
|
hasOption(java.lang.String name)
@param name The name of the option |
boolean
|
isEnvironmentSet()
@return Whether the environment is user specified |
java.lang.String
|
lookupEnvironmentForCommand()
|
java.lang.Object
|
optionValue(java.lang.String name)
The value of an option |
void
|
setCommand(java.lang.String scriptName)
|
Field Detail |
---|
public java.lang.String AGENT_ARGUMENT
public java.lang.String HELP_ARGUMENT
public java.lang.String NOANSI_ARGUMENT
public java.lang.String NON_INTERACTIVE_ARGUMENT
public java.lang.String OFFLINE_ARGUMENT
public java.lang.String REFRESH_DEPENDENCIES_ARGUMENT
public java.lang.String STACKTRACE_ARGUMENT
public java.lang.String VERBOSE_ARGUMENT
public java.lang.String VERSION_ARGUMENT
Method Detail |
---|
public java.lang.String getCommandName()
public java.lang.String getEnvironment()
public java.util.List getRemainingArgs()
public java.lang.String[] getRemainingArgsArray()
public java.lang.String getRemainingArgsLineSeparated()
public java.lang.String getRemainingArgsString()
public java.util.Properties getSystemProperties()
public java.util.Map getUndeclaredOptions()
public boolean hasOption(java.lang.String name)
name
- The name of the option
public boolean isEnvironmentSet()
public java.lang.String lookupEnvironmentForCommand()
public java.lang.Object optionValue(java.lang.String name)
name
- The option
public void setCommand(java.lang.String scriptName)
Groovy Documentation