diff options
author | Selwin Ong <selwin.ong@gmail.com> | 2017-07-23 07:29:10 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-23 07:29:10 +0700 |
commit | 29068151c94d94f80db761fdc8bf9c4faa2833c5 (patch) | |
tree | cfa29e0082aa3a455373b8970d68cbb96ed0776d | |
parent | 2bc2f447d31aa955bbd77c16873768e442f32031 (diff) | |
parent | fab545c193bf2bd6adb2671c25db0deb5d775e6e (diff) | |
download | rq-29068151c94d94f80db761fdc8bf9c4faa2833c5.tar.gz |
Merge pull request #858 from sjtbham/master
path option needs to be a shared command to ensure that settings fileā¦
-rwxr-xr-x | rq/cli/cli.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rq/cli/cli.py b/rq/cli/cli.py index 2fb26ec..20c6a42 100755 --- a/rq/cli/cli.py +++ b/rq/cli/cli.py @@ -54,6 +54,10 @@ shared_options = [ envvar='RQ_CONNECTION_CLASS', default=DEFAULT_CONNECTION_CLASS, help='Redis client class to use'), + click.option('--path', '-P', + default='.', + help='Specify the import path.', + multiple=True) ] @@ -134,7 +138,6 @@ def requeue(cli_config, all, job_class, job_ids, **options): @main.command() -@click.option('--path', '-P', default='.', help='Specify the import path.', multiple=True) @click.option('--interval', '-i', type=float, help='Updates stats every N seconds (default: don\'t poll)') @click.option('--raw', '-r', is_flag=True, help='Print only the raw numbers, no bar charts') @click.option('--only-queues', '-Q', is_flag=True, help='Show only queue info') @@ -168,7 +171,6 @@ def info(cli_config, interval, raw, only_queues, only_workers, by_queue, queues, @main.command() @click.option('--burst', '-b', is_flag=True, help='Run in burst mode (quit after all work is done)') @click.option('--name', '-n', help='Specify a different name') -@click.option('--path', '-P', default='.', help='Specify the import path.', multiple=True) @click.option('--results-ttl', type=int, help='Default results timeout to be used') @click.option('--worker-ttl', type=int, help='Default worker timeout to be used') @click.option('--verbose', '-v', is_flag=True, help='Show more output') |