Skip to content

Commit

Permalink
dont colorize if no args are passed
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter committed Jan 28, 2015
1 parent 89189aa commit 0057080
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/gman
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class IsoCountryCodes
end

domain = ARGV[0]
String.disable_colorization = true if ARGV[1] == "--no-color"
String.disable_colorization = true if ARGV.last == "--no-color"

if domain.nil?
puts "USAGE: gman <domain or email address> [--no-color]".red
Expand Down
2 changes: 1 addition & 1 deletion gman.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Gem::Specification.new do |s|
s.name = "gman"
s.summary = "Check if a given domain or email address belong to a governemnt entity"
s.description = "A ruby gem to check if the owner of a given email address is working for THE MAN."
s.version = '4.4.1'
s.version = '4.4.2'
s.authors = ["Ben Balter"]
s.email = "ben.balter@github.com"
s.homepage = "https://github.com/benbalter/gman"
Expand Down

0 comments on commit 0057080

Please sign in to comment.