Package com.Ostermiller.util
Class CmdLnResult
java.lang.Object
com.Ostermiller.util.CmdLnResult
Result when a command line option is found.
Contains the original option and all of its arguments.
More information about this class and code samples for suggested use are
available from ostermiller.org.
- Since:
- ostermillerutils 1.07.00
- Author:
- Stephen Ostermiller https://ostermiller.org/contact.pl?regarding=Java+Utilities
-
Method Summary
Modifier and TypeMethodDescriptionget the first argument, or null if no argumentsintGet the argument count for this optionGet all the arguments, in the order that they were specified.
-
Method Details
-
getOption
- Returns:
- the option that caused this result
- Since:
- ostermillerutils 1.07.00
-
getArgumentCount
public int getArgumentCount()Get the argument count for this option- Returns:
- number of arguments
- Since:
- ostermillerutils 1.07.00
-
getArguments
Get all the arguments, in the order that they were specified.- Returns:
- unmodifiable list of arguments or null if none
- Since:
- ostermillerutils 1.07.00
-
getArgument
get the first argument, or null if no arguments- Returns:
- first argument
- Since:
- ostermillerutils 1.07.00
-