# HG changeset patch # User Franz Glasner # Date 1758023581 -7200 # Node ID 8b656c4eb66596057a56faaa5dfc39da28c957f5 # Parent 2c27c13220fc457afe6b44e0721cd1757e3d57be FIX: handling of "--output/-o" option diff -r 2c27c13220fc -r 8b656c4eb665 pdfautonup/__main__.py --- a/pdfautonup/__main__.py Tue Sep 16 13:48:07 2025 +0200 +++ b/pdfautonup/__main__.py Tue Sep 16 13:53:01 2025 +0200 @@ -51,6 +51,8 @@ if file.endswith(".pdf"): return f"""{file[: -len(".pdf")]}-nup.pdf""" return f"{file}-nup.pdf" + if isinstance(output, str): + return output raise TypeError()