diff options
author | garret <garret@airmail.cc> | 2023-07-12 16:27:42 +0100 |
---|---|---|
committer | garret <garret@airmail.cc> | 2023-07-12 17:14:26 +0100 |
commit | e68df40ca3aca72c7e354d8a46aa4b9b7e91f358 (patch) | |
tree | 9dd4089f23f51ce22adc70dd785f0adb4537846f /walker.py | |
parent | 09a68dc0f0008b513b03621d15c483bbb6f5bc29 (diff) | |
download | comicwalker-dl-e68df40ca3aca72c7e354d8a46aa4b9b7e91f358.tar.gz comicwalker-dl-e68df40ca3aca72c7e354d8a46aa4b9b7e91f358.tar.bz2 comicwalker-dl-e68df40ca3aca72c7e354d8a46aa4b9b7e91f358.zip |
remove unnecessary argparse arguments
you don't need to specify --help if no arguments, that's the default behaviour
Diffstat (limited to 'walker.py')
-rw-r--r-- | walker.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10,7 +10,7 @@ from binascii import unhexlify parser = argparse.ArgumentParser()
parser.add_argument('-cid', help='content id, &cid={...}. see url when reading a chapter')
parser.add_argument('-nolog', help='no progressive download logs on terminal', action="store_true")
-args = parser.parse_args(args=None if sys.argv[1:] else ['--help'])
+args = parser.parse_args()
if args.cid == None:
parser.print_help()
|