Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

On 0.3.12b0, exit code of j2cli -v and j2cli -h is 1 #74

Open
saiarcot895 opened this issue Jan 6, 2022 · 0 comments
Open

On 0.3.12b0, exit code of j2cli -v and j2cli -h is 1 #74

saiarcot895 opened this issue Jan 6, 2022 · 0 comments

Comments

@saiarcot895
Copy link

saiarcot895 commented Jan 6, 2022

On 0.3.12b0, the exit code of j2cli -v and j2cli -h is 1. This is a change from 0.3.10, where the exit code there was 0.

I see that 26a67e9 added a try-catch block catching SystemExit, and with those two commands, argparse (I'm guessing) is raising SystemExit to exit the program. Is it possible to narrow the scope of the try-catch block so that the exit code for j2cli -v and j2cli -h is still 0?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant