Annotation Type CLIFlag


  • @Target(FIELD)
    @Retention(RUNTIME)
    public @interface CLIFlag
    Annotation for a boolean command line option without an argument, like "--exit-on-error".
    See Also:
    CLIArgumentParser
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String description
      A short sentence description of the option.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String longOpt
      Long name for the option.
      char shortOpt
      Short name for the option.
    • Element Detail

      • description

        java.lang.String description
        A short sentence description of the option. Shown in help / usage screens.
      • longOpt

        java.lang.String longOpt
        Long name for the option. If not provided, one will be auto-generated from the field name.
        Default:
        "\u0000\u0000\u0000\u0000[NO DEFAULT]\u0000\u0000\u0000\u0000"
      • shortOpt

        char shortOpt
        Short name for the option. If not provided, the option will not have a short name.
        Default:
        '\u0000'