Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version and help should not return non-zero exit code #212

Closed
wants to merge 4 commits into from
Closed

Conversation

I3urny
Copy link

@I3urny I3urny commented Aug 12, 2022

Due to a design choice in the CommandLineParser library that you forked the default "supported" verbs and options are listed as errors and therefore returns a non-zero exit code.

This PR fixes this by implementing a custom error handler that specifically checks for those errors.
The affected verbs and options are:

  • help
  • version
  • --help
  • --version

I raised an issue in the upstream repo regarding this design choice: commandlineparser/commandline#841

@I3urny
Copy link
Author

I3urny commented Aug 23, 2022

@kirillkrylov @vladimir-nikonov any chance this gets released with clio 3.0.1.25?

@vladimir-nikonov
Copy link
Contributor

vladimir-nikonov commented Aug 23, 2022 via email

@I3urny
Copy link
Author

I3urny commented Sep 20, 2022

@kirillkrylov @vladimir-nikonov I've rebased my commit onto the latest master. When can I expect this to be available in clio?

@I3urny
Copy link
Author

I3urny commented Jan 9, 2023

@vladimir-nikonov branch is up-to-date with master again.

Copy link
Contributor

@vladimir-nikonov vladimir-nikonov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix comit in master and include in 6.0.1.11

@vladimir-nikonov
Copy link
Contributor

fix merged in master

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

Successfully merging this pull request may close these issues.

2 participants