org.crsh.cmdline.annotations
Annotation Type Argument


@Target(value={FIELD,PARAMETER,ANNOTATION_TYPE})
@Retention(value=RUNTIME)
public @interface Argument

Annotates a field or parameter to become an command line argument.

Version:
$Revision$
Author:
Julien Viet

Optional Element Summary
 Class<? extends Completer> completer
          The completer type to complete this option value.
 String name
          The argument name, this value is optional and is only used in the documentation.
 boolean password
          Not yet implemented.
 boolean unquote
          Indicates whether or not the value should be unquoted.
 

name

public abstract String name
The argument name, this value is optional and is only used in the documentation.

Returns:
the argument name
Default:
""

password

public abstract boolean password
Not yet implemented.

Returns:
the password value
Default:
false

unquote

public abstract boolean unquote
Indicates whether or not the value should be unquoted.

Returns:
the unquote value
Default:
true

completer

public abstract Class<? extends Completer> completer
The completer type to complete this option value.

Returns:
the completer type
Default:
org.crsh.cmdline.completers.EmptyCompleter.class


Copyright © 2012 eXo Platform SAS. All Rights Reserved.