gov.llnl.babel.cli

Interface CommandLineExtension

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(CommandLineDictionary) with the current dictionary.

Method Summary

void
registerCommandLineSwitches(CommandLineDictionary dict)
This method should register all command line switches in the dictionary.

Method Details

registerCommandLineSwitches

public 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(CommandLineSwitch), you can let Babel handle it.