lib/hanzo/cli.rb in hanzo-0.2.1 vs lib/hanzo/cli.rb in hanzo-0.2.2

- old
+ new

@@ -15,10 +15,14 @@ end def initialize_cli initialize_help and return if @app.nil? - @options = Hanzo.const_get(@app.capitalize).new(@args).options + begin + @options = Hanzo.const_get(@app.capitalize).new(@args).options + rescue NameError + initialize_help + end end def initialize_help @options.banner = <<-BANNER Usage: hanzo action [options]