alanhamlett/pip-update-requirements

Set exit code

kichik opened this issue · 6 comments

It would be very useful if pur set the exit code of the process based on the result of the update process. For example, if any versions were bumped, return 1. If nothing was changed, return 0. This will help using pur in a script that automates version updates.

That would break most shell scripts if they set the -e flag, which most do. That would cause any shell script to abort on any non-zero exit code.

Then maybe a flag to enable this behavior?

That would work, I'll add this to the next version.

Released in v2.0.6.

Thanks!

Hi @alanhamlett!

Could you document this option in README?

nvm me.