Merge remote-tracking branch 'origin/master'

main
Vincent Driessen 12 years ago
commit 412d4a15d3

@ -11,6 +11,8 @@ def add_standard_arguments(parser):
help='The Redis portnumber (default: 6379)')
parser.add_argument('--db', '-d', type=int, default=None,
help='The Redis database (default: 0)')
parser.add_argument('--password', '-a', default=None,
help='The Redis password (default: None)')
def read_config_file(module):
@ -34,5 +36,6 @@ def setup_default_arguments(args, settings):
def setup_redis(args):
redis_conn = redis.Redis(host=args.host, port=args.port, db=args.db)
redis_conn = redis.Redis(host=args.host, port=args.port, db=args.db,
password=args.password)
use_connection(redis_conn)

Loading…
Cancel
Save