nvie/rq — pull request #149 by jparise (2012-10-05 00:06:41+00:00)
Title: Add a standard --url argument to all scripts.

redis-py now supports URL-based connection configuration. When `--url` is specified, we use it to construct the Redis client object. Otherwise, we use the existing argument-based construction method.

`Redis.from_url()` is new in redis-py 2.6.2, so that prerequisite has been adjusted accordingly. If this is undesirable, we could instead use the older `redis.from_url()` method (introduced in redis-py 2.4.13), which would still require a prerequisite bump. As a third option, we could inspect `redis.__version__` at runtime and make this feature available conditionally.

See: https://github.com/andymccurdy/redis-py/blob/master/CHANGES