org.incava.jagol

Class OptionSet

public class OptionSet extends Object

A group of options.
Constructor Summary
OptionSet(String appName, String description)
Method Summary
voidadd(Option opt)
Adds an options to this set.
voidaddRunControlFile(String name)
Adds a run control file to be processed.
StringgetAppName()
Returns the application name.
StringgetDescription()
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 voidprocessRunControlFiles()
Processes the run control files, if any.
protected voidshowConfig()
protected voidshowUsage()

Constructor Detail

OptionSet

public OptionSet(String appName, String description)

Method Detail

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()