Skip to content

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 <[email protected]>
Signed-off-by: Filip Valgimigli <[email protected]>
@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
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