public interface CommandLine
Represents the parsed command line options.
Type Params | Return Type | Name and description |
---|---|---|
|
public String |
getCommandName()
|
|
public Map<String, Object> |
getDeclaredOptions() |
|
public String |
getEnvironment()
|
|
public String[] |
getRawArguments() |
|
public List<String> |
getRemainingArgs()
|
|
public String[] |
getRemainingArgsArray()
|
|
public String |
getRemainingArgsLineSeparated()
|
|
public String |
getRemainingArgsString()
|
|
public String |
getRemainingArgsWithOptionsString()
|
|
public Properties |
getSystemProperties()
|
|
public Map<String, Object> |
getUndeclaredOptions() |
|
public boolean |
hasOption(String name)
|
|
public boolean |
isEnvironmentSet()
|
|
public Map.Entry<String, Object> |
lastOption()
|
|
public String |
lookupEnvironmentForCommand() |
|
public Object |
optionValue(String name) The value of an option |
|
public CommandLine |
parseNew(String[] args) Parses a new CommandLine instance that combines this instance with the given arguments |
|
public void |
setCommand(String scriptName) |
name
- The name of the option
The value of an option
name
- The optionParses a new CommandLine instance that combines this instance with the given arguments
args
- The arguments