Class: Viiite::Command::Help

Inherits:
Object
  • Object
show all
Defined in:
lib/viiite/command/help.rb

Overview

Show help about a specific command

SYNOPSIS

viiite #{command_name} COMMAND

Instance Method Summary collapse

Instance Method Details

#execute(args) ⇒ Object

Command execution



15
16
17
18
19
# File 'lib/viiite/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