Annotation Type HideSection


  • @Retention(RUNTIME)
    @Target(TYPE)
    @Documented
    public @interface HideSection
    Annotation used to specify that a section that would otherwise be inherited from a parent class should be hidden

    Annotations for help sections are automatically inherited down the class hierarchy which allows for a parent class to define a common help section (e.g. ExitCodes). This can be overridden by specifying it again further down the class hierarchy but in some cases it may actually be desirable to hide an inherited section entirely in which case this annotation may be used.

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String title
      Sets the title of the section to hide
    • Element Detail

      • title

        java.lang.String title
        Sets the title of the section to hide
        Returns:
        Section title