Interface OptionParser.AvailableOption

    • Method Detail

      • requiresParameter

        default boolean requiresParameter()
        Determines if this option requires a parameter.
        Returns:
        true if this option requires a parameter (false by default)
      • getRequiredCount

        default OptionParser.OptionCount getRequiredCount()
        Determines how often this option may / must be specified on the command line.
        Returns:
        how often this option may / must be specified on the command line
      • runFor

        void runFor​(java.lang.String parameter)
        Called once if the parameter is encountered, after basic validation.
        Parameters:
        parameter - The parameter if requiresParameter() is true, null otherwise.