[issue45101] Small inconsistency in usage message between the python and shell script versions of python-config

Kien Dang report at bugs.python.org
Thu Sep 23 16:57:44 EDT 2021


Kien Dang <mail at kien.ai> added the comment:

Thanks. I didn't know about the `pkg-config` thing. I just checked with pkg-config on macOS

`pkg-config --help` prints usage instructions to stdout

pkg-config followed by invalid options prints output to stderr, for example `pkg-config --asdf` prints `Unknown option --asdf` to stderr.

The PR I submitted does something similar, making both python and shell script versions of `python-config` to print out the usage instruction message to stdout when --help is provided and stderr when given invalid arguments.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45101>
_______________________________________


More information about the Python-bugs-list mailing list