Closed DimanNe closed 4 months ago
2 of the 4 linked issues are open. The 2 linked issues list their reason for being closed.
If the reason the issue is closed is unclear, the thing to do would be to post on that issue, rather than open a new issue.
Going to close in favor of the linked issues so we can keep the discussion in one place, rather than creating more places.
Please complete the following tasks
Clap Version
4.5.0
Describe your use case
I know there are: https://github.com/clap-rs/clap/issues/3513, https://github.com/clap-rs/clap/issues/3117, https://github.com/clap-rs/clap/issues/5050, https://github.com/clap-rs/clap/issues/4556, but there are no solutions (in the issues).
I personally came across this limitation too.
I have multiple ways to specify password:
and some subcommands need to know old passphrase and new:
which obviously fails to compile.
How can I implement this without copy-paste? Why are all the issues above closed?
Describe the solution you'd like
The simplest one: is to provide prefix as an attribute, for example in my case I could provide prefix
old_
andpass_stdin
would becomeold_pass_stdin
Alternatives, if applicable
No response
Additional Context
No response