fix: argparse CLI option ordering, fixes #268

This commit is contained in:
Werner Robitza 2025-01-17 11:26:07 +01:00
parent f58a864951
commit 01fea457ed

View file

@ -51,12 +51,13 @@ def main():
help="show the version number and exit",
)
parser.add_argument("filename", nargs="?")
parser.add_argument(
"-o",
"--output",
help="Output file name. If not provided, output is written to stdout.",
)
parser.add_argument("filename", nargs="?")
args = parser.parse_args()
if args.filename is None: