public class Main extends CmdlineGenericConsumer
| Modifier and Type | Method and Description |
|---|---|
int |
checkOption(String mainName,
char ch,
String arg)
Handle subclass-specific command line options and their arguments.
|
void |
initializeArgs()
Method used to initialize any instance variables which may be
changed by a cmdline option.
|
static void |
main(String[] args) |
String |
optionUsage()
A short string included in the usage message to indicate
valid options.
|
checkKeyword, finalizeArgs, keywordUsagepublic Main(String[] args)
public int checkOption(String mainName, char ch, String arg)
CmdlineGenericConsumercheckOption in interface CmdlineConsumercheckOption in class CmdlineGenericConsumermainName - The name of the main class (useful for
error messages.)ch - Option character. If -a is specified
on the command line, 'a' would be passed to
this method.)arg - The argument associated with this option.public void initializeArgs()
CmdlineGenericConsumerCmdlineParser will be run
before any instance variables for the extending
class are initialized.initializeArgs in interface CmdlineConsumerinitializeArgs in class CmdlineGenericConsumerpublic String optionUsage()
CmdlineGenericConsumeroptionUsage in interface CmdlineConsumeroptionUsage in class CmdlineGenericConsumerpublic static final void main(String[] args)