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

[cpp] CLI parser errors are caught and a print help message is printed #1288

Merged
merged 2 commits into from
Jul 12, 2022

Conversation

cmnrd
Copy link
Collaborator

@cmnrd cmnrd commented Jul 11, 2022

Instead of just failing with an exception on CLI parse errors, the LF binary will print a more informative error message and the help text. Also this PR improves the formatting of parse exceptions thrown by our custom parser for time values.

Closes #1255

@cmnrd cmnrd requested review from Rodario and lhstrh July 11, 2022 08:02
@cmnrd cmnrd added enhancement Enhancement of existing feature cpp Related to C++ target labels Jul 11, 2022
Copy link
Member

@lhstrh lhstrh left a comment

Choose a reason for hiding this comment

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

Cool!

@cmnrd cmnrd merged commit d4fc700 into master Jul 12, 2022
@cmnrd cmnrd deleted the fix-1255 branch July 12, 2022 08:50
@lhstrh lhstrh changed the title Cpp: catch CLI parser errors and print help message [cpp] CLI parser errors are caught and a print help message is printed Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp Related to C++ target enhancement Enhancement of existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

C++ prorgams should print help when using wrong CLI arguments
2 participants