org.gudy.azureus2.ui.console.commands
Class OptionsConsoleCommand
java.lang.Object
org.gudy.azureus2.ui.console.commands.IConsoleCommand
org.gudy.azureus2.ui.console.commands.OptionsConsoleCommand
- Direct Known Subclasses:
- AddFind, Alias, Log, Priority
public abstract class OptionsConsoleCommand
- extends IConsoleCommand
subclass of IConsoleCommand that allows the parameters to be defined using
an Options object
- Author:
- pauld
- See Also:
Options
Method Summary |
abstract void |
execute(java.lang.String commandName,
ConsoleInput console,
org.apache.commons.cli.CommandLine commandLine)
execute using the specified command line. |
void |
execute(java.lang.String commandName,
ConsoleInput console,
java.util.List arguments)
take the args and try and create a command line object |
protected org.apache.commons.cli.Options |
getOptions()
|
protected org.apache.commons.cli.CommandLineParser |
getParser()
|
void |
printHelpExtra(java.io.PrintStream out,
java.util.List args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptionsConsoleCommand
public OptionsConsoleCommand(java.lang.String main_name)
OptionsConsoleCommand
public OptionsConsoleCommand(java.lang.String main_name,
java.lang.String short_name)
execute
public void execute(java.lang.String commandName,
ConsoleInput console,
java.util.List arguments)
- take the args and try and create a command line object
- Specified by:
execute
in class IConsoleCommand
printHelpExtra
public void printHelpExtra(java.io.PrintStream out,
java.util.List args)
- Overrides:
printHelpExtra
in class IConsoleCommand
execute
public abstract void execute(java.lang.String commandName,
ConsoleInput console,
org.apache.commons.cli.CommandLine commandLine)
- execute using the specified command line.
- Parameters:
commandName
- console
- commandLine
-
getParser
protected org.apache.commons.cli.CommandLineParser getParser()
- Returns:
getOptions
protected org.apache.commons.cli.Options getOptions()