Class Option

  • All Implemented Interfaces:
    Cloneable
    Direct Known Subclasses:
    Argument

    public class Option
    extends AbstractParameter
    Command Line option.
    An option is a pair with the following pattern -[option name] [option value]
    • Constructor Detail

      • Option

        public Option()
    • Method Detail

      • isRequired

        public boolean isRequired()
        Specified by:
        isRequired in class AbstractParameter
        Returns:
        true if this Option is required
      • setRequired

        public void setRequired​(boolean required)
        Parameters:
        required - set required
      • getArgName

        public String getArgName()
        Returns:
        the argument name
      • setArgName

        public void setArgName​(String argName)
        Parameters:
        argName - the argument name to set
      • clone

        protected void clone​(Option opt)