Class CommandOptions
java.lang.Object
org.episteme.natural.chemistry.loaders.cml.util.CommandOptions
Container and processor for a collection of command-line options.
Handles argument parsing and usage reporting.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
ConstructorsConstructorDescriptiondo not use.CommandOptions(String[] args, CommandOptionManager com) Creates a new CommandOptions object. -
Method Summary
Modifier and TypeMethodDescriptionprotected CommandOption[]Returns the array of default options.Returns the command option manager.protected CommandOption[]Aggregates options from the class hierarchy.voidprocess()Triggers the processing of the options via the manager.voidsetCommandOptionManager(CommandOptionManager commandOptionManager) Sets the command option manager.voidusage(PrintStream out) Prints the usage information to the specified stream.
-
Constructor Details
-
CommandOptions
public CommandOptions()do not use. -
CommandOptions
Creates a new CommandOptions object.- Parameters:
args- the command-line arguments to parsecom- the manager for these options
-
-
Method Details
-
extendOptions
Returns the array of default options. Subclasses should override this to add more.- Returns:
- the array of CommandOption objects
-
getOptions
Aggregates options from the class hierarchy.- Returns:
- the complete array of options
-
setCommandOptionManager
Sets the command option manager.- Parameters:
commandOptionManager- the manager to set
-
getCommandOptionManager
Returns the command option manager.- Returns:
- the manager
-
usage
Prints the usage information to the specified stream.- Parameters:
out- the print stream to output to
-
process
-