From e3cc64c19c286ecd8798b0f25b46494da4494e2f Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 23 Oct 2020 07:45:31 -0700 Subject: [PATCH] Remove useless const from argparse arg. --- voussoirkit/downloady.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voussoirkit/downloady.py b/voussoirkit/downloady.py index 53e82a0..2add964 100644 --- a/voussoirkit/downloady.py +++ b/voussoirkit/downloady.py @@ -476,7 +476,7 @@ def main(argv): parser.add_argument('-ow', '--overwrite', dest='overwrite', action='store_true') parser.add_argument('-r', '--range', dest='range', default=None) parser.add_argument('--timeout', dest='timeout', type=int, default=TIMEOUT) - parser.add_argument('--retry', dest='retry', const=-1, nargs='?', type=int, default=1) + parser.add_argument('--retry', dest='retry', nargs='?', type=int, default=1) parser.add_argument('--no-head', dest='no_head', action='store_true') parser.add_argument('--no-ssl', dest='no_ssl', action='store_true') parser.set_defaults(func=download_argparse)