org.gudy.azureus2.ui.console.commands
Class Alias

java.lang.Object
  extended by org.gudy.azureus2.ui.console.commands.IConsoleCommand
      extended by org.gudy.azureus2.ui.console.commands.OptionsConsoleCommand
          extended by org.gudy.azureus2.ui.console.commands.Alias

public class Alias
extends OptionsConsoleCommand

the alias command will add/remove/modify aliases to the CLI input reader. aliases will be expanded and take priority over standard commands.

Author:
pauld

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gudy.azureus2.ui.console.commands.IConsoleCommand
IConsoleCommand.TorrentComparator
 
Constructor Summary
Alias()
           
 
Method Summary
 void execute(java.lang.String commandName, ConsoleInput console, org.apache.commons.cli.CommandLine commandLine)
          execute using the specified command line.
 java.lang.String getCommandDescriptions()
          return high-level help about the commands supported by this object.
 
Methods inherited from class org.gudy.azureus2.ui.console.commands.OptionsConsoleCommand
execute, getOptions, getParser, printHelpExtra
 
Methods inherited from class org.gudy.azureus2.ui.console.commands.IConsoleCommand
expandVariable, getCommandName, getCommandNames, getDefaultSummaryFormat, getShortCommandName, getTorrentSummary, printHelp, printHelp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Alias

public Alias()
Parameters:
_commandNames -
Method Detail

getCommandDescriptions

public java.lang.String getCommandDescriptions()
Description copied from class: IConsoleCommand
return high-level help about the commands supported by this object.

Specified by:
getCommandDescriptions in class IConsoleCommand
Returns:

execute

public void execute(java.lang.String commandName,
                    ConsoleInput console,
                    org.apache.commons.cli.CommandLine commandLine)
Description copied from class: OptionsConsoleCommand
execute using the specified command line.

Specified by:
execute in class OptionsConsoleCommand