tldr-pages / tldr-python-client

:snake: Python command-line client for tldr pages 📚
https://pypi.org/project/tldr/
MIT License
599 stars 95 forks source link

Made errors use the proper exit code and stderr #72

Closed franga2000 closed 5 years ago

franga2000 commented 6 years ago

Until now, when an error was encountered, the message would be printed to stdout as any other, and the program would exit with the code 0 - implying a success.

Using the sys.exit method for error messages makes the message go to stderr and exits with code 1 - following the Unix convention.

JacobCallahan commented 5 years ago

LGTM to me as well

waldyrious commented 5 years ago

@agnivade do you think you could merge this?

agnivade commented 5 years ago

Thanks !