Change 'bind' CLI option to 'host'. Set default to 127.0.0.1. Closes #47.

This commit is contained in:
Tom Preston-Werner
2010-09-29 14:40:36 -07:00
parent cdf75d20ef
commit ee6b71ff80
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ require 'rubygems'
require 'gollum'
exec = {}
options = {}
options = { 'bind' => '127.0.0.1' }
opts = OptionParser.new do |opts|
opts.banner = help
@@ -26,7 +26,7 @@ opts = OptionParser.new do |opts|
options['port'] = port.to_i
end
opts.on("--bind [HOST]", "Hostname or IP address to listen on (default 0.0.0.0).") do |host|
opts.on("--host [HOST]", "Hostname or IP address to listen on (default 0.0.0.0).") do |host|
options['bind'] = host
end