xerial.cui.argument Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xerial-cui Show documentation
Show all versions of xerial-cui Show documentation
command line parser and launcher
The newest version!
package xerial.cui;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* CommandTrait-line argument with no option prefix such as "-" or "--"
*
* @author leo
*
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.FIELD, ElementType.METHOD })
public @interface argument {
/**
* Name of this argument. If nothing is given, field name is used;
*/
String name() default "";
/**
* Argument index (0-origin) among the arguments without option prefix, "-"
* or "--". The default is 0.
*/
int index() default 0;
/**
* Description of this argument
*/
String description() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy