Annotation Interface Argument


@Documented @Retention(RUNTIME) public @interface Argument
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Each argument can have an alias
    A delimiter for arguments that are multi-valued.
    A description of the argument that will appear in the usage method
    Each argument can be read from environment variable.
    This is the prefix expected for the argument
    boolean
    If this is true, then the argument must be set or the parse will fail
    This is the actual command line argument itself
    Class<? extends Callable<List<String>>>
     
  • Element Details

    • value

      String value
      This is the actual command line argument itself
      Default:
      ""
    • required

      boolean required
      If this is true, then the argument must be set or the parse will fail
      Default:
      false
    • prefix

      String prefix
      This is the prefix expected for the argument
      Default:
      "-"
    • alias

      String alias
      Each argument can have an alias
      Default:
      ""
    • envvar

      String envvar
      Each argument can be read from environment variable.
      Default:
      ""
    • description

      String description
      A description of the argument that will appear in the usage method
      Default:
      ""
    • delimiter

      String delimiter
      A delimiter for arguments that are multi-valued.
      Default:
      ","
    • valuesProvider

      Class<? extends Callable<List<String>>> valuesProvider
      Default:
      com.sampullara.cli.Argument.DummyCallable.class