From 8b5c3dc6c1f8313bff8e5a5782b4b77902e598e8 Mon Sep 17 00:00:00 2001 From: kris Date: Wed, 24 Nov 2021 16:03:55 +0000 Subject: [PATCH] Fix bool flags --- convert.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/convert.py b/convert.py index b7c0932..8f3b9f9 100644 --- a/convert.py +++ b/convert.py @@ -331,13 +331,14 @@ def main(): '(default: 0)' ) parser.add_argument( - '--save-preview', type=bool, default=True, + '--save-preview', action=argparse.BooleanOptionalAction, default=True, help='Whether to save a .PNG rendering of the output image (default: ' 'True)' ) parser.add_argument( - '--show-final-score', type=bool, default=False, - help='Whether to output the final image quality score (default: False)' + '--show-final-score', action=argparse.BooleanOptionalAction, + default=False, help='Whether to output the final image quality score ' + '(default: False)' ) args = parser.parse_args() if args.lookahead < 1: