|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jangband.StartupOptions
public class StartupOptions
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 |
|---|
private org.apache.commons.cli.CommandLineParser parser
private org.apache.commons.cli.Options options
private boolean borgActive
private boolean developerActive
| Constructor Detail |
|---|
public StartupOptions()
| Method Detail |
|---|
private void initOptions()
private void parseArgs()
public boolean isBorgActive()
public void setBorgActive(boolean borgActive)
borgActive - the borgActive to setpublic boolean isDeveloperActive()
public void setDeveloperActive(boolean developerActive)
developerActive - the developerActive to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||