Class LineHelper



  • public class LineHelper
    extends Object
    • Constructor Detail

      • LineHelper

        public LineHelper()
    • Method Detail

      • getValue

        public static boolean getValue(org.apache.commons.cli.CommandLine line,
                                       String optionName,
                                       boolean defaultValue,
                                       boolean trueIfPresent)
      • getRemainingArguments

        public static List<String> getRemainingArguments(org.apache.commons.cli.CommandLine line)
      • findOptions

        public static Set<String> findOptions(org.apache.commons.cli.CommandLine line,
                                              Collection<String> options)
        Of a collection of specified option names, find those options that are present in the CommandLine argument.
        Parameters:
        line - the command line to inspect.
        options - the option names to look for.
        Returns:
        the Set of option names present in the command line parameter, a subset of the options supplied.