All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cyclopsgroup.jcli.annotation.Argument Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
package org.cyclopsgroup.jcli.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * This annotation marks a property as non-option argument or arguments. Type of this property can be array, List or
 * single value.
 *
 * @author Jiaqi Guo
 */
@Documented
@Target( { ElementType.METHOD, ElementType.FIELD } )
@Retention( RetentionPolicy.RUNTIME )
public @interface Argument
{
    /**
     * @return String description of argument which will be displayed in usage
     */
    String description() default "";

    /**
     * @return Name of argument displayed in usage
     */
    String displayName() default "arg";
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy