lib/chef-dk/command/base.rb in chef-dk-0.2.1 vs lib/chef-dk/command/base.rb in chef-dk-0.3.0

- old
+ new

@@ -54,9 +54,13 @@ msg("Chef Development Kit Version: #{ChefDK::VERSION}") 0 else run(params) end + rescue OptionParser::InvalidOption => e + err(e.message) + msg(opt_parser) + 1 end def needs_help?(params) params.include?("-h") || params.include?("--help") end