This commit is contained in:
ricterz 2015-04-19 19:00:44 +08:00
parent 6f50bd8f26
commit abc68435d8

View File

@ -14,11 +14,13 @@ def banner():
def cmd_parser(): def cmd_parser():
parser = OptionParser() parser = OptionParser()
parser.add_option('--search', type='string', dest='keyword', action='store') parser.add_option('--search', type='string', dest='keyword', action='store', help='keyword searched')
parser.add_option('--download', dest='is_download', action='store_true') parser.add_option('--download', dest='is_download', action='store_true', help='download dojinshi or not')
parser.add_option('--id', type='int', dest='id', action='store') parser.add_option('--id', type='int', dest='id', action='store', help='dojinshi id of nhentai')
parser.add_option('--path', type='string', dest='saved_path', action='store', default='') parser.add_option('--path', type='string', dest='saved_path', action='store', default='',
parser.add_option('--threads', type='int', dest='threads', action='store', default=1) help='path which save the dojinshi downloaded')
parser.add_option('--threads', type='int', dest='threads', action='store', default=1,
help='thread count of download dojinshi')
args, _ = parser.parse_args() args, _ = parser.parse_args()
if args.threads <= 0: if args.threads <= 0: