From 033bbe0f200889b9d2169f4b4c9c4bb4a971f7ad Mon Sep 17 00:00:00 2001 From: vn-ki Date: Mon, 5 Feb 2018 22:24:30 +0530 Subject: [PATCH] Prettify code --- anime_downloader/cli.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/anime_downloader/cli.py b/anime_downloader/cli.py index 0264e65..e348987 100644 --- a/anime_downloader/cli.py +++ b/anime_downloader/cli.py @@ -7,18 +7,19 @@ echo = click.echo @click.command() @click.argument('anime_url') -@click.option('--range', 'range_', help="Range of anime you want to" - " download in the form :", metavar=':') -@click.option('--playlist', default=False, help="If flag is set, saves the" - " stream urls in an m3u file", type=bool, is_flag=True) -@click.option('--url', default=False, help="If flag is set, prints the" - " stream url and not download", type=bool, is_flag=True) +@click.option('--range', 'range_', metavar=':', + help="Range of anime you want to download in the form :") +@click.option('--playlist', default=False, type=bool, is_flag=True, + help="If flag is set, saves the stream urls in an m3u file") +@click.option('--url', default=False, type=bool, is_flag=True, + help="If flag is set, prints the stream url and not download") @click.option('--play', 'player', metavar='PLAYER', help="Streams in the specified player") -@click.option('--no-download', default=False, help="Retrieve without " - "downloading", is_flag=True) +@click.option('--no-download', default=False, is_flag=True, + help="Retrieve without downloading") @click.option('--quality', type=click.Choice(['360p', '480p', '720p']), - default='720p', help='Specify the quality of episode. Default-720p') + default='720p', + help='Specify the quality of episode. Default-720p') def cli(anime_url, range_, playlist, url, player, no_download, quality): """ Anime Downloader