Use type instead of default to specify interval option type

This commit is contained in:
zhangliyong 2014-09-14 14:47:17 +07:00
parent 3d49784bcc
commit 6621105bde
1 changed files with 1 additions and 1 deletions

View File

@ -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')