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

parse-args print help only on demand to clutter less the output #204

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

robstoll
Copy link
Member

I realised that I am used to scroll up in case of errors to see the first message, i.e. the idea to print the help first and the error in the end was rather counterintuitive.
Let's take a new approach and print the error first again and ask the user if the help shall be printed, this way we only show it on demand and don't clutter the output -- i.e. still see the error first without losing the ability to see the help quickly


I confirm that I have read the Contributor Agreement v1.1, agree to be bound on them and confirm that my contribution is compliant.

I realised that I am used to scroll up in case of errors to see the
first message, i.e. the idea to print the help first and the error in
the end was rather counterintuitive.
Let's take a new approach and print the error first again and ask the
user if the help shall be printed, this way we only show it on demand
and don't clutter the output -- i.e. still see the error first without
losing the ability to see the help quickly
@robstoll robstoll merged commit 8e7f2c8 into main Oct 18, 2024
4 checks passed
@robstoll robstoll deleted the improve/parse-args-print-help branch October 18, 2024 21:26
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.

1 participant