public class GfxdOption
extends org.apache.commons.cli.Option
| Constructor and Description |
|---|
GfxdOption(String opt,
boolean hasArg,
String description)
Creates an Option using the specified parameters.
|
GfxdOption(String opt,
String description) |
GfxdOption(String opt,
String longOpt,
boolean hasArg,
String description)
Creates an Option using the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getOptionValue(String opt)
Get a single value for this option if the given option string matches this
option (either long or short).
|
String |
getOptKey()
Returns the 'unique' Option identifier.
|
addValue, builder, builder, clone, equals, getArgName, getArgs, getDescription, getId, getLongOpt, getOpt, getType, getValue, getValue, getValue, getValues, getValueSeparator, getValuesList, hasArg, hasArgName, hasArgs, hashCode, hasLongOpt, hasOptionalArg, hasValueSeparator, isRequired, setArgName, setArgs, setDescription, setLongOpt, setOptionalArg, setRequired, setType, setType, setValueSeparator, toStringpublic GfxdOption(String opt, String description) throws IllegalArgumentException
IllegalArgumentExceptionpublic GfxdOption(String opt, boolean hasArg, String description) throws IllegalArgumentException
opt - short representation of the optionhasArg - specifies whether the Option takes an argument or notdescription - describes the function of the optionIllegalArgumentException - if there are any non valid Option characters in opt.public GfxdOption(String opt, String longOpt, boolean hasArg, String description) throws IllegalArgumentException
opt - short representation of the optionlongOpt - the long representation of the optionhasArg - specifies whether the Option takes an argument or notdescription - describes the function of the optionIllegalArgumentException - if there are any non valid Option characters in opt.public final String getOptionValue(String opt)
public final String getOptKey()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.