Class: Hanzo::CLI

Inherits:
Base
  • Object
show all
Defined in:
lib/hanzo/cli.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#extract_argument, #initialize

Constructor Details

This class inherits a constructor from Hanzo::Base

Instance Method Details

#runObject



7
8
9
10
# File 'lib/hanzo/cli.rb', line 7

def run
  @options.parse!(@args) if @opts.respond_to? :parse!
  puts @options unless @options.to_s == "Usage: hanzo [options]\n"
end