-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Help subcommand behaves different than help flags when App::replace
is used
#2011
Comments
I am still deciding whether this is intended or not. |
@CreepySkeleton Need your opinion on this. |
My opinion is that I think the solution here is to develop a working cross-level aliasing mechanism (and possibly ditch |
Cleared the milestone since it looks like we are punting on this by putting |
Cross posting from #2836 for greater visibility
|
This has been implemented for 3 years without much traction for finishing it up. The subcommand use case can be worked around by creating `Command`s that just include the relevant logic, very similar to the default subcommand examples in `git` / `git-derive`. Using this for flags is covered by clap-rs#4793. Without `unstable-replace` being enabled, this still cut 5 KiB from `cargo bloat --release --example git`. Closes clap-rs#2011
This has been implemented for 3 years without much traction for finishing it up. The subcommand use case can be worked around by creating `Command`s that just include the relevant logic, very similar to the default subcommand examples in `git` / `git-derive`. Using this for flags is covered by clap-rs#4793. Without `unstable-replace` being enabled, this still cut 5 KiB from `cargo bloat --release --example git`. Closes clap-rs#2836 Closes clap-rs#2011
Using clap
master
Code
Steps to reproduce the issue
cargo r -- install --help
cargo r -- help install
cargo r -- install --help
Outputcargo r -- help install
OutputI expected the replacement of
help install
withhelp module install
The text was updated successfully, but these errors were encountered: