Discovered this trying to work around python-poetry/poetry#106 doing something along the lines of poetry show -v | head -n1 | ...
Using the GreetCommand given in the README:
% python app.py | head
Console Tool
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
[BrokenPipeError]
[Errno 32] Broken pipe
list [--raw] [--format FORMAT] [--] [<namespace>]
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>
BrokenPipeError: [Errno 32] Broken pipe
% echo $?
0
Discovered this trying to work around python-poetry/poetry#106 doing something along the lines of
poetry show -v | head -n1 | ...Using the
GreetCommandgiven in the README: