aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2023-07-12 16:27:42 +0100
committergarret <garret@airmail.cc>2023-07-12 17:14:26 +0100
commite68df40ca3aca72c7e354d8a46aa4b9b7e91f358 (patch)
tree9dd4089f23f51ce22adc70dd785f0adb4537846f
parent09a68dc0f0008b513b03621d15c483bbb6f5bc29 (diff)
downloadcomicwalker-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
-rw-r--r--walker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/walker.py b/walker.py
index d98be8f..803885e 100644
--- a/walker.py
+++ b/walker.py
@@ -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()