TUM CCSM Commons

edu.tum.cs.commons.options
Annotation Type AOption


@Documented
@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface AOption

Annotation for exposing methods as command line options. This should only be used with methods taking zero or one parameters.

Version:
$Rev: 26283 $
Author:
Benjamin Hummel, $Author: juergens $
Rating:
GREEN Hash: D9BF68C91C99C85B1F1EF668BB0AAA71

Required Element Summary
 java.lang.String description
          The description of this option used for usage messages.
 
Optional Element Summary
 boolean greedy
          If this is set to true, all non-option arguments following the annotated option are used for this option.
 java.lang.String longName
          The optional long (i.e. multi-character) name of the option.
 char shortName
          The optional short (i.e. single character) name of the option.
 

Element Detail

description

public abstract java.lang.String description
The description of this option used for usage messages.

shortName

public abstract char shortName
The optional short (i.e. single character) name of the option.

Default:
0

longName

public abstract java.lang.String longName
The optional long (i.e. multi-character) name of the option.

Default:
""

greedy

public abstract boolean greedy
If this is set to true, all non-option arguments following the annotated option are used for this option. This results in multiple calls to this options setter method.

Default:
false

TUM CCSM Commons

TUM CCSM Commons - 2.7