public interface ICommandLine
Modifier and Type | Method and Description |
---|---|
String |
getOptionValue(char cOption)
Returns the value of the specified option.
|
String |
getOptionValue(char cOption,
String sDefaultValue)
Returns the value of the specified option If the option is not present,
returns the default value.
|
String |
getOptionValue(String sOptionName)
Returns the value of the specified option.
|
String |
getOptionValue(String sOptionName,
String sDefaultValue)
Returns the value of the specified option.
|
boolean |
hasOption(char cOption)
Returns
true if the option is present. |
boolean |
hasOption(String sOptionName)
Returns
true if the option is present. |
String getOptionValue(String sOptionName)
sOptionName
- The option nameString getOptionValue(String sOptionName, String sDefaultValue)
sOptionName
- The option namesDefaultValue
- The default valueString getOptionValue(char cOption)
cOption
- The option short nameString getOptionValue(char cOption, String sDefaultValue)
cOption
- The option short namesDefaultValue
- The default valueboolean hasOption(String sOptionName)
true
if the option is present.sOptionName
- The option nametrue
if the option is presentboolean hasOption(char cOption)
true
if the option is present.cOption
- The option short nameCopyright © 2013. All Rights Reserved.