lib/inch/cli/command/options/base.rb in inch-0.7.1 vs lib/inch/cli/command/options/base.rb in inch-0.8.0.rc1

- old
+ new

@@ -147,11 +147,11 @@ # # @param msg [String,nil] optional, message to be displayed # @return [void] def kill(msg = nil) ui.warn usage - ui.warn msg.red unless msg.nil? + ui.warn msg.color(:red) unless msg.nil? ui.warn "Try `--help' for more information." exit 1 end # Parses the option and handles invalid switches @@ -176,10 +176,10 @@ # Callback when an unrecognize option is parsed # # @param [OptionParser::ParseError] err the exception raised by the # option parser def unrecognized_option(err) - ui.warn "Unrecognized/#{err.message}".red + ui.warn "Unrecognized/#{err.message}".color(:red) end end end end end