View Javadoc

1   package org.kohsuke.args4j;
2   
3   import java.lang.annotation.Retention;
4   import java.lang.annotation.Target;
5   
6   import static java.lang.annotation.RetentionPolicy.RUNTIME;
7   import static java.lang.annotation.ElementType.FIELD;
8   import static java.lang.annotation.ElementType.METHOD;
9   
10  /***
11   * Argument of the command line.
12   *
13   * This works mostly like {@link Option} except the following differences.
14   *
15   * <ol>
16   *  <li>Argument by definition doesn't have an option name.
17   *  <li>Arguments are always allowed to occur multiple times.
18   *      (IOW, it works like {@link Option#repeatable()}==true.
19   * </ol>
20   * 
21   * @author Kohsuke Kawaguchi
22   */
23  @Retention(RUNTIME)
24  @Target({FIELD,METHOD})
25  public @interface Argument {
26  }