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

Clap derive is missing "hide" option #4353

Closed
2 tasks done
Firstyear opened this issue Oct 6, 2022 · 2 comments
Closed
2 tasks done

Clap derive is missing "hide" option #4353

Firstyear opened this issue Oct 6, 2022 · 2 comments
Labels
C-enhancement Category: Raise on the bar on expectations

Comments

@Firstyear
Copy link

Please complete the following tasks

Clap Version

4.0.10

Describe your use case

Reading https://docs.rs/clap/latest/clap/_derive/index.html it appears that the hide method ( https://docs.rs/clap/latest/clap/builder/struct.Command.html#method.hide ) is not exposed via the derive interface.

Describe the solution you'd like

Either that:

  • Hide is added to derive
  • If it is already supported, that is is documented in the derive reference

Alternatives, if applicable

n/a

Additional Context

n/a

@Firstyear Firstyear added the C-enhancement Category: Raise on the bar on expectations label Oct 6, 2022
@epage
Copy link
Member

epage commented Oct 6, 2022

Under Arg Attributes is this line

Raw attributes: Any Arg method can also be used as an attribute, see Terminology for syntax.

Any Arg builder method can be used in the derive, including hide.

For more on why it is documented this way and brainstorming for improving it, see #4090

@epage epage closed this as completed Oct 6, 2022
@Firstyear
Copy link
Author

Thanks! I totally missed that it was extremely subtle :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Raise on the bar on expectations
Projects
None yet
Development

No branches or pull requests

2 participants