org.freecompany.yacli
Annotation Type Option


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

The option annotation defines an option to be set on the target class from the arguments provided on the command line. The command line interface handles finding these options, validating them, and setting any value(s) they may have on the Runnable main class before executing it.


Required Element Summary
 java.lang.String description
           
 java.lang.String longName
           
 Required required
           
 java.lang.String shortName
           
 Value value
           
 
Optional Element Summary
 java.lang.String help
           
 

Element Detail

longName

public abstract java.lang.String longName

shortName

public abstract java.lang.String shortName

description

public abstract java.lang.String description

required

public abstract Required required

value

public abstract Value value

help

public abstract java.lang.String help
Default:
""