lib/hscode.rb in hscode-0.1.1 vs lib/hscode.rb in hscode-0.1.2

- old
+ new

@@ -1,8 +1,9 @@ require 'hscode/version' require 'hscode/input_parser' require 'hscode/http_status_codes' +require 'hscode/status_code_types' require 'optparse' require 'ostruct' module Hscode class CliController @@ -16,10 +17,10 @@ def self.print_code(options) status_code = HTTP_STATUS_CODES[options.status_code.to_i] unless status_code puts "#{options.status_code} is not a valid code. See 'hscode --help'." - exit + exit 1 end PrettyPrint.print( "#{options.status_code} - #{status_code[:title]}", options.status_code.to_s[0]