Annotation Type Positional


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface Positional

    This annotation required only for CLI utilities such as control.sh. Fields marked by this annotation treated as "positional argument" so no explicit prefixed name will be provided by the user.
    Example:

    ./control.sh --my-command --param1 value1 positional_value.

    As you may see there are no --positional-parameter prefix for "positional_value".