public class ArgumentDescriptor extends ParameterDescriptor
| Constructor and Description |
|---|
ArgumentDescriptor(String name,
org.crsh.cli.impl.ParameterType<?> type,
Description info,
boolean required,
boolean password,
boolean unquote,
Class<? extends Completer> completerType,
Annotation annotation) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the argument name, that can be null.
|
Object |
parse(List<String> values) |
void |
printUsage(Appendable writer)
Prints the argument:
Single valued arguments use the "$arg" pattern.
Multi valued arguments use the "...
|
String |
toString() |
getAnnotation, getCompleterType, getDeclaredType, getDescription, getMultiplicity, getType, getUsage, isMultiValued, isPassword, isRequired, isSingleValued, isUnquote, parsepublic ArgumentDescriptor(String name, org.crsh.cli.impl.ParameterType<?> type, Description info, boolean required, boolean password, boolean unquote, Class<? extends Completer> completerType, Annotation annotation) throws org.crsh.cli.impl.descriptor.IllegalValueTypeException, org.crsh.cli.impl.descriptor.IllegalParameterException
org.crsh.cli.impl.descriptor.IllegalValueTypeExceptionorg.crsh.cli.impl.descriptor.IllegalParameterExceptionpublic String getName()
public Object parse(List<String> values) throws org.crsh.cli.impl.SyntaxException
parse in class ParameterDescriptororg.crsh.cli.impl.SyntaxExceptionpublic void printUsage(Appendable writer) throws IOException
printUsage in class ParameterDescriptorwriter - the writer to print toIOException - any io exceptionCopyright © 2015 eXo Platform SAS. All Rights Reserved.