You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.
Comment by CreepySkeleton Sunday Aug 23, 2020 at 09:27 GMT
My opinion is that replace was a badly designed feature. Something that OP described (cross-level subcommand aliases) was the reason replace was added in the first place, and while it does kinda solve the problem, it adds more problems (help messages don't mention it at all and there's no way for them to do so, malfunctioning help subcommand) and it doesn't quite blend with the rest of the machinery (essentially being a C-like dumb preprocessor the rest of clap isn't even aware of).
I think the solution here is to develop a working cross-level aliasing mechanism (and possibly ditch replace but that questionable).
Issue by nickelc
Monday Jul 13, 2020 at 17:33 GMT
Originally opened as clap-rs/clap#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: