Package net.sf.colossus.cmdline
Class CmdLine
java.lang.Object
net.sf.colossus.cmdline.CmdLine
Class CmdLine represents a parsed command line for one run of a program.
- Author:
- David Ripton
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn an ArrayList of all leftover arguments that were found on the command line after valid options were parsed.getOptValue
(char optch) Return the option value as a String.getOptValue
(String name) Return the option value as a String.boolean
optIsSet
(char optch) Return true iff the option has been seen.boolean
Return true iff the option has been seen.
-
Field Details
-
leftovers
-
optchToValue
-
nameToValue
-
optchSeen
-
nameSeen
-
-
Constructor Details
-
CmdLine
-
-
Method Details
-
optIsSet
public boolean optIsSet(char optch) Return true iff the option has been seen. -
optIsSet
Return true iff the option has been seen. -
getOptValue
Return the option value as a String. Will raise if the option has not been set or does not take an argument. -
getOptValue
Return the option value as a String. Will raise if the option has not been set or does not take an argument. -
getLeftovers
Return an ArrayList of all leftover arguments that were found on the command line after valid options were parsed.
-