Package org.rwtodd.args
Class Parser
java.lang.Object
org.rwtodd.args.Parser
Parses command-line arguments against given
Params.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparses the given args, and returns any elements that don't appear to be params in an array.voidPrint help text for each parameter given to us by the user.
-
Constructor Details
-
Parser
Construct a command-line parser from a set ofParamobjects.- Parameters:
ps- the parameters to use for parsing.
-
-
Method Details
-
parse
parses the given args, and returns any elements that don't appear to be params in an array.- Parameters:
args- the command-line arguments- Returns:
- any non-param strings from the input
- Throws:
ArgParserException- when a problem is encountered
-
printHelpText
Print help text for each parameter given to us by the user. The parametrs are printed in the same order they were provided.- Parameters:
ps- the print stream to use for output.
-