Class: Switchboard::Commands::Help
- Inherits:
-
Switchboard::Command
- Object
- Switchboard::Command
- Switchboard::Commands::Help
- Defined in:
- lib/switchboard/commands/help/help.rb
Class Method Summary collapse
Methods inherited from Switchboard::Command
description, help, options, to_command, to_command_name
Class Method Details
.run! ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/switchboard/commands/help/help.rb', line 6 def self.run! if ARGV.any? puts Switchboard::COMMANDS[ARGV * "_"].help else Switchboard::Commands::Default.run! end end |