org.sonatype.gshell.util.cli2
Class OptionDescriptor
java.lang.Object
org.sonatype.gshell.util.AnnotationDescriptor
org.sonatype.gshell.util.cli2.CliDescriptor
org.sonatype.gshell.util.cli2.OptionDescriptor
public class OptionDescriptor
- extends CliDescriptor
Option descriptor.
- Since:
- 2.3
- Author:
- Jason Dillon
| Methods inherited from class org.sonatype.gshell.util.cli2.CliDescriptor |
getDescription, getHandler, getHandlerType, getId, getMessageCode, getSetter, getToken, getTokenCode, getType, isArgument, isMultiValued, isOption, isRequired, renderHelpText, renderSyntax, renderToken |
UNINITIALIZED
public static final int UNINITIALIZED
- See Also:
- Constant Field Values
UNLIMITED
public static final int UNLIMITED
- See Also:
- Constant Field Values
OptionDescriptor
public OptionDescriptor(Option spec,
Setter setter)
getSpec
public Option getSpec()
getName
public String getName()
getLongName
public String getLongName()
getSeparator
public char getSeparator()
getArgs
public int getArgs()
isArgumentOptional
public boolean isArgumentOptional()
getOverride
public boolean getOverride()
getSyntax
public String getSyntax()
- Specified by:
getSyntax in class CliDescriptor
Copyright © 2008-2011 Sonatype. All Rights Reserved.