Class: Stamina::Command::Help
- Inherits:
-
Object
- Object
- Stamina::Command::Help
- Defined in:
- lib/stamina-core/stamina/command/help.rb
Overview
Show help about a specific command
SYNOPSIS
#{program_name} #{command_name} COMMAND
Instance Method Summary collapse
-
#execute(args) ⇒ Object
Command execution.
Instance Method Details
#execute(args) ⇒ Object
Command execution
15 16 17 18 19 |
# File 'lib/stamina-core/stamina/command/help.rb', line 15 def execute(args) sup = Quickl.super_command(self) sub = (args.size != 1) ? sup : Quickl.sub_command!(sup, args.first) puts Quickl.help(sub) end |