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
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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOptionsConsoleCommand
(String main_name) OptionsConsoleCommand
(String main_name, String short_name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(String commandName, ConsoleInput console, List arguments) take the args and try and create a command line objectabstract void
execute
(String commandName, ConsoleInput console, org.apache.commons.cli.CommandLine commandLine) execute using the specified command line.protected org.apache.commons.cli.Options
protected org.apache.commons.cli.CommandLineParser
void
printHelpExtra
(PrintStream out, List args) Methods inherited from class com.biglybt.ui.console.commands.IConsoleCommand
expandVariable, getCommandDescriptions, getCommandName, getCommandNames, getDefaultSummaryFormat, getShortCommandName, getTorrentSummary, printHelp, printHelp
-
Field Details
-
options
private org.apache.commons.cli.Options options -
parser
private org.apache.commons.cli.CommandLineParser parser
-
-
Constructor Details
-
OptionsConsoleCommand
-
OptionsConsoleCommand
-
-
Method Details
-
execute
take the args and try and create a command line object- Specified by:
execute
in classIConsoleCommand
-
printHelpExtra
- Overrides:
printHelpExtra
in classIConsoleCommand
-
execute
public abstract void execute(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()
-