Uses of Class
com.Ostermiller.util.CmdLnOption
-
Uses of CmdLnOption in com.Ostermiller.util
Methods in com.Ostermiller.util that return CmdLnOptionModifier and TypeMethodDescriptionCmdLnOption.addLongName(String name) CmdLnOption.addLongNames(String[] longNames) CmdLnOption.addLongNames(Collection<String> longNames) CmdLnOption.addShortName(Character name) CmdLnOption.addShortNames(char[] shortNames) CmdLnOption.addShortNames(Character[] shortNames) CmdLnOption.addShortNames(Collection<Character> shortNames) CmdLnArgumentException.getOption()Get the option that caused this exceptionCmdLnResult.getOption()CmdLnOption.setArgumentBounds(int minArguments, int maxArguments) Sets the bounds for command line arguments.CmdLnOption.setDescription(String description) CmdLnOption.setListener(CmdLnListener callback) Set the call back objectCmdLnOption.setNoArguments()Sets the argument bounds to require no arguments (zero arguments minimum, zero arguments maximum).CmdLnOption.setOptionalArgument()Sets the argument bounds for a single optional argument (zero arguments minimum, one argument maximum).CmdLnOption.setRequiredArgument()Sets the argument bounds for a single required argument (one argument minimum, one argument maximum).CmdLnOption.setUnlimitedArguments()Sets the argument bounds for unlimited (but optional) arguments (zero arguments minimum, Integer.MAX_VALUE arguments maximum).CmdLnOption.setUserObject(Object userObject) An object that may be set by the user.Methods in com.Ostermiller.util with parameters of type CmdLnOptionModifier and TypeMethodDescriptionCmdLn.addOption(CmdLnOption option) Add option.CmdLn.addOptions(CmdLnOption[] options) Add options.CmdLn.getResult(CmdLnOption option) Get the last result associated with the option.CmdLn.getResults(CmdLnOption option) Get all the results associated with the given argument in the order in which they appear in the command line.intCmdLn.occurrences(CmdLnOption option) The number of times the specified option is present in the command line.booleanCmdLn.present(CmdLnOption option) Whether or not the specified option is present in the command line.Method parameters in com.Ostermiller.util with type arguments of type CmdLnOption