gov.llnl.babel
Class UserOptions
java.lang.Object
gov.llnl.babel.UserOptions
- CommandLineExtension
public class UserOptions
extends java.lang.Object
Manages the
wide variety of settings available to a user. The configuration
options are read in through an array of strings (args). Newly
specified arguments always replace the values of the previously
specified ones with the exception of the repository path where
new arguments are appended to the existing list.
For developers, to add a new internal Babel option. Create an inner
subclass in UserOptions with a name ending in Switch
.
This class uses reflection to automatically add all inner classes
as command line switches.
UserOptions
public UserOptions(Context context)
Since this is a singleton class, the constructor is protected.
getNumRequired
public int getNumRequired()
Return the number of required elements on the command line.
getVersionPrinted
public boolean getVersionPrinted()
Return true
iff the version option appeared and it
was printed.