Set both IPs with one options.

Good if you want to set up a single MailCatcher instance for a development team.
This commit is contained in:
Samuel Cochran 2011-05-27 12:23:46 +08:00
parent 36faf40f5f
commit 8d6c237d62

View File

@ -22,6 +22,10 @@ module MailCatcher
@@defaults.dup.tap do |options|
OptionParser.new do |parser|
parser.banner = 'Usage: mailcatcher [options]'
parser.on('--ip IP', 'Set the ip address of both servers') do |ip|
options[:smtp_ip] = options[:http_ip] = ip
end
parser.on('--smtp-ip IP', 'Set the ip address of the smtp server') do |ip|
options[:smtp_ip] = ip