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