Class OptionUtil



  • public class OptionUtil
    extends Object
    • Constructor Detail

      • OptionUtil

        public OptionUtil()
    • Method Detail

      • getKey

        public static String getKey(Option option)
        This method provides the same functionality as the Option's getKey() method, which has package private visibility however. It returns Option.getOpt() if the return value of that method is non-null and Option.getLongOpt() otherwise.
        Parameters:
        option - the option to get the key for.