org.jangband
Class StartupOptions

java.lang.Object
  extended by org.jangband.StartupOptions

public class StartupOptions
extends java.lang.Object

Handles parsing and storing the results from the args passed into the command line for Jangband. Should not implement pico container's Startable interface here. This class just parses and exposes args.


Field Summary
private  boolean borgActive
          Testing mode setting
private  boolean developerActive
          Developer mode setting
private  org.apache.commons.cli.Options options
          These options are set up in the initOptions() method.
private  org.apache.commons.cli.CommandLineParser parser
          Command line parser.
 
Constructor Summary
StartupOptions()
          Constructor called by Pico Container.
 
Method Summary
private  void initOptions()
          Initialize the options for Jangband command line interface.
 boolean isBorgActive()
           
 boolean isDeveloperActive()
           
private  void parseArgs()
          Parse the option args passed in by the user.
 void setBorgActive(boolean borgActive)
           
 void setDeveloperActive(boolean developerActive)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parser

private org.apache.commons.cli.CommandLineParser parser
Command line parser. I'm a Posix fan, what can I say?


options

private org.apache.commons.cli.Options options
These options are set up in the initOptions() method.


borgActive

private boolean borgActive
Testing mode setting


developerActive

private boolean developerActive
Developer mode setting

Constructor Detail

StartupOptions

public StartupOptions()
Constructor called by Pico Container.

Method Detail

initOptions

private void initOptions()
Initialize the options for Jangband command line interface.


parseArgs

private void parseArgs()
Parse the option args passed in by the user.


isBorgActive

public boolean isBorgActive()
Returns:
the borgActive

setBorgActive

public void setBorgActive(boolean borgActive)
Parameters:
borgActive - the borgActive to set

isDeveloperActive

public boolean isDeveloperActive()
Returns:
the developerActive

setDeveloperActive

public void setDeveloperActive(boolean developerActive)
Parameters:
developerActive - the developerActive to set




SourceForge.net Logo

Server provided by Gene Davis Software.