From eaa1f4a3562c3dd5d51651a0ee8c20a1a4fe0627 Mon Sep 17 00:00:00 2001 From: Marcin Jenczmyk Date: Sun, 24 Mar 2019 18:38:09 +0100 Subject: [PATCH] Change -f parameter type to boolean flag --- src/packtPublishingFreeEbook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packtPublishingFreeEbook.py b/src/packtPublishingFreeEbook.py index 08c3dad..97bfc4b 100644 --- a/src/packtPublishingFreeEbook.py +++ b/src/packtPublishingFreeEbook.py @@ -258,7 +258,7 @@ def update_download_progress_bar(current_work_done): @click.option('-sgd', '--sgd', is_flag=True, help='Grab Free Learning Packt ebook and download it to Google Drive.') @click.option('-m', '--mail', is_flag=True, help='Grab Free Learning Packt ebook and send it by an email.') @click.option('-sm', '--status_mail', is_flag=True, help='Send an email whether script execution was successful.') -@click.option('-f', '--folder', default=False, help='Download ebooks into separate directories.') +@click.option('-f', '--folder', is_flag=True, default=False, help='Download ebooks into separate directories.') @click.option( '--noauth_local_webserver', is_flag=True,