Interface ParseInputOptions
- All Superinterfaces:
InputOptions, ParsedOptions
- All Known Subinterfaces:
InputParameterOptions
- All Known Implementing Classes:
SbkDriversParameters, SbkInputOptions, SbkParameters, SbkYalParameters
Contract for parsing command-line arguments into
ParsedOptions.
Extends InputOptions to ensure options are registered prior to parsing and
ParsedOptions to expose the parsed values. Implementations should validate
required arguments and may throw HelpException when a help flag is present.
-
Method Summary
Methods inherited from interface InputOptions
addOption, hasOptionMethods inherited from interface ParsedOptions
getHelpText, getOptionValue, getOptionValue, hasOptionValue, printHelp
-
Method Details
-
parseArgs
void parseArgs(String[] args) throws org.apache.commons.cli.ParseException, IllegalArgumentException, HelpException Parse the command line arguments.- Parameters:
args- list of command line arguments.- Throws:
IllegalArgumentException- If an exception occurred.org.apache.commons.cli.ParseException- If an exception occurred.HelpException- If the 'help' option is supplied.
-