lib/hanzo/cli.rb in hanzo-0.4.2 vs lib/hanzo/cli.rb in hanzo-0.4.3
- old
+ new
@@ -1,11 +1,11 @@
require 'hanzo/modules/deploy'
require 'hanzo/modules/install'
require 'hanzo/modules/config'
module Hanzo
- class CLI < Base
+ class CLI < Base
def run
@options.parse!(@args) if @opts.respond_to? :parse!
puts @options unless @options.to_s == "Usage: hanzo [options]\n"
end
@@ -14,10 +14,10 @@
def initialize_variables
@app = extract_argument(0)
end
def initialize_cli
- initialize_help and return if @app.nil?
+ initialize_help && return if @app.nil?
begin
@options = Hanzo.const_get(@app.capitalize).new(@args).options
rescue NameError
initialize_help