Package com.biglybt.ui.console.commands
Class OptionsConsoleCommand
- java.lang.Object
-
- com.biglybt.ui.console.commands.IConsoleCommand
-
- com.biglybt.ui.console.commands.OptionsConsoleCommand
-
- Direct Known Subclasses:
AddFind
,Alias
,Priority
,UserCommand.AddUserCommand
,UserCommand.DeleteUserCommand
,UserCommand.ModifyUserCommand
public abstract class OptionsConsoleCommand extends IConsoleCommand
subclass of IConsoleCommand that allows the parameters to be defined using an Options object- See Also:
Options
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.biglybt.ui.console.commands.IConsoleCommand
IConsoleCommand.TorrentComparator
-
-
Constructor Summary
Constructors Constructor Description OptionsConsoleCommand(java.lang.String main_name)
OptionsConsoleCommand(java.lang.String main_name, java.lang.String short_name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
execute(java.lang.String commandName, ConsoleInput console, java.util.List arguments)
take the args and try and create a command line objectabstract void
execute(java.lang.String commandName, ConsoleInput console, org.apache.commons.cli.CommandLine commandLine)
execute using the specified command line.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 com.biglybt.ui.console.commands.IConsoleCommand
expandVariable, getCommandDescriptions, getCommandName, getCommandNames, getDefaultSummaryFormat, getShortCommandName, getTorrentSummary, printHelp, printHelp
-
-
-
-
Method Detail
-
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 classIConsoleCommand
-
printHelpExtra
public void printHelpExtra(java.io.PrintStream out, java.util.List args)
- Overrides:
printHelpExtra
in classIConsoleCommand
-
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()
-
-