Method: Wordsmith::CLI#run
- Defined in:
- lib/wordsmith/cli.rb
#run ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/wordsmith/cli.rb', line 12 def run if @subcommand && self.respond_to?(@subcommand) begin self.send @subcommand, @args rescue Object => e error e end else help end end |