From 6621105bdeea25f93bbb605e95c7839cceda20a6 Mon Sep 17 00:00:00 2001 From: zhangliyong Date: Sun, 14 Sep 2014 14:47:17 +0700 Subject: [PATCH] Use type instead of default to specify interval option type --- rq/cli/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/cli/cli.py b/rq/cli/cli.py index 8cbaded..18979dc 100755 --- a/rq/cli/cli.py +++ b/rq/cli/cli.py @@ -88,7 +88,7 @@ def requeue(url, all, job_ids): @main.command() @url_option @click.option('--path', '-P', default='.', help='Specify the import path.') -@click.option('--interval', '-i', default=0.0, help='Updates stats every N seconds (default: don\'t poll)') +@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') @click.option('--only-workers', '-W', is_flag=True, help='Show only worker info')