From bdc4690240471bd17bead0f5ec606442da508146 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Sat, 19 Nov 2016 21:42:08 +0100 Subject: [PATCH] Fixed tail argument --- bitter/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitter/cli.py b/bitter/cli.py index aee0ff1..c491f3b 100644 --- a/bitter/cli.py +++ b/bitter/cli.py @@ -365,7 +365,7 @@ def get_stream(ctx, locations, track, file): @stream.command('read') @click.option('-f', '--file', help='File to read the stream of tweets from', required=True) -@click.option('-t', '--tail', help='Keep reading from the file, like tail', type=bool, default=False) +@click.option('-t', '--tail', is_flag=True, help='Keep reading from the file, like tail', type=bool, default=False) @click.pass_context def read_stream(ctx, file, tail): for tweet in utils.read_file(file, tail=tail):