diff --git a/pyn/cli.py b/pyn/cli.py index 6479456..7e71122 100644 --- a/pyn/cli.py +++ b/pyn/cli.py @@ -3,6 +3,8 @@ from pyn.config import load_config from pyn import commands, todo # type: ignore +import sys + def main(): options = vars(parser.parse_args()) @@ -22,7 +24,8 @@ def main(): try: f(**options) except RuntimeError as e: - parser.exit(1, str(e)) + sys.stderr.write(f"{e}\n") + parser.exit(1) if __name__ == "__main__":