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

Refactor the help/usage message for canplayer #522

Merged
merged 1 commit into from
May 15, 2024

Conversation

delta512
Copy link
Contributor

Dear maintainers,

as a side effect of PR #521 development, we noticed that the canplayer utility returns with an error value, even when asked for the help message explicitly. We thought it might be nicer to limit the above behavior only to unknown options.

We also changed the option from a question mark -? into an -h, which is more common among CLI tools.

Hope you'll find these nuances sound and do not hesitate to request changes.

Have a great day again!

@marckleinebudde
Copy link
Member

Thanks for the contribution. Please add -h to print_usage().

Limit the error return value only to unknown options.
If the utility is invoked with the help option '-h',
display the usage message and exit successfully.

Co-authored-by: Filip Valgimigli <filip.valgimigli@unimore.it>
Signed-off-by: Filip Valgimigli <filip.valgimigli@unimore.it>
@delta512
Copy link
Contributor Author

Thanks for the contribution. Please add -h to print_usage().

Oh, I really missed on this. I amended the previous commit so it's all well packed together.

Hope it looks good know

@marckleinebudde marckleinebudde merged commit d05810f into linux-can:master May 15, 2024
3 checks passed
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.

3 participants