Class ArgumentGroupImpl

    • Constructor Detail

      • ArgumentGroupImpl

        public ArgumentGroupImpl​(ArgumentParserImpl argumentParser,
                                 java.lang.String title)
    • Method Detail

      • required

        public ArgumentGroupImpl required​(boolean required)
        Description copied from interface: MutuallyExclusiveGroup

        If true is given, one of the arguments in this group must be specified otherwise error will be issued.

        The default value is false.

        Specified by:
        required in interface MutuallyExclusiveGroup
        Parameters:
        required - true or false
        Returns:
        this
      • printHelp

        public void printHelp​(java.io.PrintWriter writer,
                              int format_width)
      • getIndex

        public int getIndex()
      • setIndex

        public void setIndex​(int index)
      • isMutex

        public boolean isMutex()
      • setMutex

        public void setMutex​(boolean mutex)
      • isRequired

        public boolean isRequired()
      • isSeparateHelp

        public boolean isSeparateHelp()
        Returns true if the help message for this group should be in separate group.
        Returns:
        true if the help message for this group should be in separate group.