ulwg_run.py: print to stderr only

* Avoid polluting `stdout` since the caller might expect the output of
the command there.
This commit is contained in:
Stelios Tsampas 2024-02-19 15:01:45 +02:00
parent 709e0bd67a
commit ffd22ca1a1

View File

@ -35,13 +35,13 @@ example usage:
if not sys.argv[1:]: 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" 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) raise SystemExit(err)
if sys.argv[1:][0] in opt_args: if sys.argv[1:][0] in opt_args:
return parser.parse_args(sys.argv[1:]) 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: def setup_pfx(path: str) -> None: