gov.llnl.babel.cli
Interface CommandLineExtension
- All Known Implementing Classes:
- UserOptions
public interface CommandLineExtension
Babel extensions wishing to add command line switches implement this
interface. Babel checks each extension class to see if it implements
this interface. If an extension does, it calls registerCommandLineSwitches(gov.llnl.babel.cli.CommandLineDictionary)
with the current dictionary.
registerCommandLineSwitches
void registerCommandLineSwitches(CommandLineDictionary dict)
throws NameCollisionException
- This method should register all command line switches in the
dictionary. Babel will call this method exactly once on
all extensions it loads.
- Parameters:
dict
- the command line switch dictionary in which you register
your command line extensions.
- Throws:
NameCollisionException
- If your extension doesn't know what to do with the exception
thrown by calls to CommandLineDictionary.addCommandLineSwitch(gov.llnl.babel.cli.CommandLineSwitch)
,
you can let Babel handle it.