From eefbc3f8aadb161e91fb44ab20971eed4d7ee51e Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 14 Nov 2021 22:00:10 -0800 Subject: [PATCH] Tidy up svgrender helptext, argparser. --- svgrender.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/svgrender.py b/svgrender.py index f8d9d47..e523a53 100644 --- a/svgrender.py +++ b/svgrender.py @@ -10,6 +10,7 @@ should be on your PATH. scales: One or more integers. Each integer will be the size of one output file. +flags: --destination: A path to a directory where the png files should be saved. By default, they go to the same folder as the svg file. @@ -96,7 +97,7 @@ def main(argv): parser.add_argument('svg_filepath') parser.add_argument('scales', nargs='+') - parser.add_argument('--destination', nargs='?', default=None) + parser.add_argument('--destination', default=None) parser.add_argument('--y', dest='y', action='store_true') parser.add_argument('--basename_only', '--basename-only', dest='scale_suffix', action='store_false') parser.set_defaults(func=svgrender_argparse)