From f4c8e23ea2759920f7d8df421b28c68c3c5effcb Mon Sep 17 00:00:00 2001 From: Stefal Date: Fri, 15 Sep 2023 11:27:29 +0200 Subject: [PATCH] fix arg store_true --- download.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/download.py b/download.py index 0696ff0..6843be8 100644 --- a/download.py +++ b/download.py @@ -24,10 +24,12 @@ def parse_args(argv =None): parser.add_argument('--sequence_ids', type=str, nargs='+', help='The mapillary sequence id(s) to download') parser.add_argument('--access_token', type=str, help='Your mapillary access token') parser.add_argument('--image_limit', type=int, default=None, help='How many images you want to download') - parser.add_argument('--overwrite', type=bool, default = False, help='overwrite existing images') + parser.add_argument('--overwrite', default=False, action='store_true', help='overwrite existing images') global args args = parser.parse_args(argv) + print(args) + sys.exit() def background(f): def wrapped(*args, **kwargs):