From ffd22ca1a14e2ab999b9470ed7011d3d5a4b2fce Mon Sep 17 00:00:00 2001 From: Stelios Tsampas Date: Mon, 19 Feb 2024 15:01:45 +0200 Subject: [PATCH] ulwg_run.py: print to `stderr` only * Avoid polluting `stdout` since the caller might expect the output of the command there. --- ulwgl_run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ulwgl_run.py b/ulwgl_run.py index 6681545..d744c39 100755 --- a/ulwgl_run.py +++ b/ulwgl_run.py @@ -35,13 +35,13 @@ example usage: if not sys.argv[1:]: err: str = "Please see project README.md for more info and examples.\nhttps://github.com/Open-Wine-Components/ULWGL-launcher" - parser.print_help() + parser.print_help(sys.stderr) raise SystemExit(err) if sys.argv[1:][0] in opt_args: return parser.parse_args(sys.argv[1:]) - return (sys.argv[1], sys.argv[2:]) + return sys.argv[1], sys.argv[2:] def setup_pfx(path: str) -> None: