org.incava.jagol

Class OptionSet

Known Direct Subclasses:
Options

public class OptionSet
extends java.lang.Object

A group of options.

Constructor Summary

OptionSet(String appName, String description)

Method Summary

void
add(Option opt)
Adds an options to this set.
void
addRunControlFile(String name)
Adds a run control file to be processed.
String
getAppName()
Returns the application name.
String
getDescription()
Returns the description.
String[]
process(String[] args)
Processes the run control files and command line arguments.
protected String[]
processCommandLine(String[] args)
Processes the command line arguments.
protected void
processRunControlFiles()
Processes the run control files, if any.
protected void
showConfig()
protected void
showUsage()

Constructor Details

OptionSet

public OptionSet(String appName,
                 String description)

Method Details

add

public void add(Option opt)
Adds an options to this set.

addRunControlFile

public void addRunControlFile(String name)
Adds a run control file to be processed.

getAppName

public String getAppName()
Returns the application name.

getDescription

public String getDescription()
Returns the description.

process

public String[] process(String[] args)
Processes the run control files and command line arguments. Returns the arguments that were not consumed by option processing.

processCommandLine

protected String[] processCommandLine(String[] args)
Processes the command line arguments. Returns the arguments that were not consumed by option processing.

processRunControlFiles

protected void processRunControlFiles()
Processes the run control files, if any.

showConfig

protected void showConfig()

showUsage

protected void showUsage()