From 7323eae99b8330574fb0ca762af7508b5d8dda23 Mon Sep 17 00:00:00 2001 From: Ma Yunzhe Date: Mon, 15 Jun 2020 10:00:23 +0800 Subject: [PATCH] remove args.tag since no tag option in parser --- nhentai/cmdline.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nhentai/cmdline.py b/nhentai/cmdline.py index 849ebc9..7153991 100644 --- a/nhentai/cmdline.py +++ b/nhentai/cmdline.py @@ -116,8 +116,7 @@ def cmd_parser(): generate_html() exit(0) - if args.main_viewer and not args.id and not args.keyword and \ - not args.tag and not args.favorites: + if args.main_viewer and not args.id and not args.keyword and not args.favorites: generate_main_html() exit(0) @@ -203,8 +202,7 @@ def cmd_parser(): _ = [i.strip() for i in f.readlines()] args.id = set(int(i) for i in _ if i.isdigit()) - if (args.is_download or args.is_show) and not args.id and not args.keyword and \ - not args.tag and not args.favorites: + if (args.is_download or args.is_show) and not args.id and not args.keyword and not args.favorites: logger.critical('Doujinshi id(s) are required for downloading') parser.print_help() exit(1)