Annotation Interface EnableConfirmSkipFlag


@Documented @Target(METHOD) @Retention(RUNTIME) public @interface EnableConfirmSkipFlag
This annotation allows users to skip the required confirmation of a command. When this annotation is applied to a method a flag is implicitly appended to the command which can be used to skip the confirmation.

The annotations value is used as the flag name, which defaults to confirm.

Since:
4.0
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The value of this annotation is used as the flag name to skip the confirmation.
  • Element Details

    • value

      The value of this annotation is used as the flag name to skip the confirmation. Should not include the leading dashes.

      Defaults to confirm, allowing users to skip the confirmation by appending --confirm.

      Returns:
      the flag name that allows skipping.
      Default:
      "confirm"