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

cpuid --version prints raw-cpuid 10.2 #189

Closed
ia0 opened this issue Sep 20, 2024 · 2 comments
Closed

cpuid --version prints raw-cpuid 10.2 #189

ia0 opened this issue Sep 20, 2024 · 2 comments

Comments

@ia0
Copy link

ia0 commented Sep 20, 2024

Is this expected? Or is it intended to print cpuid 10.2?

@gz
Copy link
Owner

gz commented Sep 20, 2024

I think printing just cpuid would be nicer since that's the name of the binary, yea.

@ia0
Copy link
Author

ia0 commented Sep 20, 2024

Thanks for the feedback!

Maybe it will be the case by default with clap v5 (see clap-rs/clap#5738), otherwise the workaround is to explicitly set the name:

#[clap(version = "10.2", author = "Gerd Zellweger <[email protected]>")]

would become:

#[clap(name = "cpuid", version = "10.2", author = "Gerd Zellweger <[email protected]>")]

@ia0 ia0 closed this as completed Sep 20, 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

No branches or pull requests

2 participants