com.twitter.common.args
Annotation Type Positional


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface Positional

Annotation to mark an Arg for gathering the positional command line arguments.


Required Element Summary
 String help
          The help string to display on the command line in a usage message.
 
Optional Element Summary
 Class<? extends Parser> parser
          The parser class to use for parsing the positional arguments.
 

Element Detail

help

public abstract String help
The help string to display on the command line in a usage message.

Returns:
Help string.

parser

public abstract Class<? extends Parser> parser
The parser class to use for parsing the positional arguments. The parser must return the same type as the field being annotated.

Returns:
Custom parser for this type.
Default:
com.twitter.common.args.Parser.class