Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.
This repository was 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

@saiarcot895

Description

@saiarcot895

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions