|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.sass.ArgumentParser.Option
public static class ArgumentParser.Option
Describes a command-line option.
| Constructor Summary | |
|---|---|
protected |
ArgumentParser.Option(String... names)
|
| Method Summary | |
|---|---|
ArgumentParser.Option |
defaultValue(String value)
Specify a default value for this Option. |
protected String |
getDefaultValue()
|
protected String |
getHelp()
|
protected List<String> |
getNames()
|
protected List<String> |
getValidValues()
|
protected String |
getValue()
|
ArgumentParser.Option |
help(String desc)
Specify the help text for this command-line option. |
protected boolean |
isSet()
|
protected void |
markSet()
|
protected boolean |
setValue(String value)
|
protected boolean |
supportsValues()
|
ArgumentParser.Option |
values(String... values)
Specify the list of valid values for this Option. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ArgumentParser.Option(String... names)
| Method Detail |
|---|
public ArgumentParser.Option values(String... values)
values - a list of values to accept for this option. Value input
other than one of these values results in program
termination.
public ArgumentParser.Option defaultValue(String value)
ArgumentParser.getOptionValue(String) for this option will
return this default value. This method must only be called after a
list of valid input values has been set via a call to
values(String...).
value - a previously defined valid value string
public ArgumentParser.Option help(String desc)
desc - a descriptive help text
protected boolean supportsValues()
protected void markSet()
protected boolean setValue(String value)
protected String getValue()
protected boolean isSet()
protected List<String> getNames()
protected String getHelp()
protected List<String> getValidValues()
protected String getDefaultValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||