bin/redis-browser in redis-browser-0.3.2 vs bin/redis-browser in redis-browser-0.3.3

- old
+ new

@@ -22,9 +22,15 @@ config = YAML.load(ERB.new(IO.read(v)).result) RedisBrowser.configure(config) end + opts.on("-U URL", "--url URL", "Connection URL. Defaults to redis://127.0.0.1:6379/0") do |v| + v = "redis://#{v}" unless v =~ /^redis:\/\// + config = { 'connections' => { 'default' => v } } + RedisBrowser.configure(config) + end + opts.on("-B ADDRESS", "--bind ADDRESS", "Server hostname or IP address to listen on") do |v| options['bind'] = v end opts.on("-P PORT", "--port PORT", "Port number to listen on") do |v|