X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/b32627cdc10c2f3f6d08ea75b705b85d1de6b46d..91de5421b250874cfff7554ae48cdb7dbc757789:/utils/redis-sha1.rb?ds=inline diff --git a/utils/redis-sha1.rb b/utils/redis-sha1.rb index a50f5610..24498e25 100644 --- a/utils/redis-sha1.rb +++ b/utils/redis-sha1.rb @@ -47,5 +47,6 @@ end host = ARGV[0] || "127.0.0.1" port = ARGV[1] || "6379" -puts "Performing SHA1 of Redis server #{host} #{port}" -p "Dataset SHA1: #{redisSha1(:host => host, :port => port.to_i)}" +db = ARGV[2] || "0" +puts "Performing SHA1 of Redis server #{host} #{port} DB: #{db}" +p "Dataset SHA1: #{redisSha1(:host => host, :port => port.to_i, :db => db)}"