Class OptionHelper



  • public class OptionHelper
    extends Object
    • Constructor Summary

      Constructors

      Constructor and Description
      OptionHelper()
       
    • Method Summary

      Methods

      Modifier and Type Method and Description
      static org.apache.commons.cli.Option add(org.apache.commons.cli.Options options, String opt, boolean hasArg, boolean required, String description)
      Add an option to the options specified by parameters
      static org.apache.commons.cli.Option add(org.apache.commons.cli.Options options, String opt, boolean hasArg, boolean required, String argName, String description)
      Add an option to the options specified by parameters
    • Constructor Detail

      • OptionHelper

        public OptionHelper()
    • Method Detail

      • add

        public static org.apache.commons.cli.Option add(org.apache.commons.cli.Options options,
                                                        String opt,
                                                        boolean hasArg,
                                                        boolean required,
                                                        String description)
        Add an option to the options specified by parameters
        Parameters:
        options - the options to add to.
        opt - the option name.
        hasArg - whether it expects an argument
        required - whether this is a required option.
        description - the option description
        Returns:
        the Option object created.
      • add

        public static org.apache.commons.cli.Option add(org.apache.commons.cli.Options options,
                                                        String opt,
                                                        boolean hasArg,
                                                        boolean required,
                                                        String argName,
                                                        String description)
        Add an option to the options specified by parameters
        Parameters:
        options - the options to add to.
        opt - the option name.
        hasArg - whether it expects an argument
        required - whether this is a required option.
        argName - the name of the argument.
        description - the option description
        Returns:
        the Option object created.