painless-software / python-cli-test-helpers

Useful helpers for writing tests for your Python CLI program.
https://python-cli-test-helpers.readthedocs.io
GNU General Public License v3.0
30 stars 4 forks source link

Use `exit_code` instead of `status` to align with Click framework #6

Closed bittner closed 2 years ago

bittner commented 2 years ago

The wording for exit status is a debated topic, but why make it difficult for our audience? The Click framework uses exit_code, and it makes sense to align with them.

bittner commented 2 years ago

On a side-note, the Python documentation on os.system discusses the conversion of the "exit status" to an "exit code" using a function available on Unix system. The exit code is ultimately the number we would expect to get.