Class Option


  • public class Option
    extends Object
    An option is a way to present arguments. It is convenient to use option to get arguments that we want.
    • Method Detail

      • getName

        public String getName()
        Get the name of the option
        Returns:
        the name of the option
      • get

        public <T> T get​(OptionType<T> optionType)
        Get argument by the option type
        Type Parameters:
        T - the target type
        Parameters:
        optionType - the option type
        Returns:
        the argument in the target type