From: Scott Worley Date: Sat, 30 Dec 2023 11:42:57 +0000 (-0800) Subject: args: Prefer dashes to underscores X-Git-Url: http://git.scottworley.com/paperdoorknob/commitdiff_plain/69169c2c71234aa0bc60e15b331369263db0e4b8?ds=inline;hp=d70acaef01c7e1501d06fda7b0e3f05de021427d args: Prefer dashes to underscores --- diff --git a/args.py b/args.py index b765fc6..fc7a0f7 100644 --- a/args.py +++ b/args.py @@ -31,7 +31,7 @@ def _print_status(msg: str) -> None: def _command_line_parser() -> ArgumentParser: parser = ArgumentParser(prog='paperdoorknob', description='Print glowfic') parser.add_argument( - '--cache_path', + '--cache-path', metavar='PATH', help='Where to keep the http cache (instead of %(default)s)', default=os.path.join(xdg_cache_home(), "paperdoorknob")) @@ -51,7 +51,7 @@ See https://faculty.bard.edu/bloch/geometry.pdf for details help='Which HTML filters to use (default: %(default)s)', default=','.join(f[0] for f in HTMLFilters)) parser.add_argument( - '--image_size', + '--image-size', help='How large the icon images are, in mm', default=20) parser.add_argument(