exe/ssl-info in ssl_info-0.1.0 vs exe/ssl-info in ssl_info-1.0.0

- old
+ new

@@ -29,20 +29,20 @@ end end begin optparse.parse! - options[:message] = ARGF.read if !STDIN.tty? # override message parameter if data is piped in + options[:message] = ARGF.read unless STDIN.tty? # override message parameter if data is piped in missing = mandatory.select { |param| options[param].nil? } raise OptionParser::MissingArgument.new(missing.join(', ')) unless missing.empty? rescue OptionParser::InvalidOption, OptionParser::MissingArgument => e puts e.to_s puts optparse exit end SSLInfo.get_cert(options[:domain]) - SSLInfo.display_cert + SSLInfo.display_cert unless SSLInfo.cert.nil? end # -------------------------------------------------------------------------------- # # Main() # # -------------------------------------------------------------------------------- #