Annotation Type Argument


  • @Retention(RUNTIME)
    @Target({FIELD,METHOD})
    public @interface Argument
    Argument of the command line. This works mostly like Option except the following differences.
    1. Arguments have an index about their relative position on the command line.
    • Element Detail

      • usage

        java.lang.String usage
        Default:
        ""
      • metaVar

        java.lang.String metaVar
        Default:
        ""
      • required

        boolean required
        Default:
        false
      • handler

        java.lang.Class<? extends OptionHandler> handler
        Default:
        org.kohsuke.args4j.spi.OptionHandler.class
      • index

        int index
        Default:
        0
      • multiValued

        boolean multiValued
        Default:
        false