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:
-
Nested Class Summary
Nested classes/interfaces inherited from class IConsoleCommand
IConsoleCommand.TorrentComparator -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOptionsConsoleCommand(String main_name) OptionsConsoleCommand(String main_name, String short_name) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(String commandName, ConsoleInput console, List arguments) take the args and try and create a command line objectabstract voidexecute(String commandName, ConsoleInput console, org.apache.commons.cli.CommandLine commandLine) execute using the specified command line.protected org.apache.commons.cli.Optionsprotected org.apache.commons.cli.CommandLineParservoidprintHelpExtra(PrintStream out, List args) Methods inherited from class 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:
executein classIConsoleCommand- Parameters:
commandName-console-arguments-
-
printHelpExtra
- Overrides:
printHelpExtrain 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()
-