Skip to content

Can we have alias subcommands - or commands with spaces in them (and without 'quotes'), that resolve to a top level command? #5782

Answered by epage
danielyrovas asked this question in Q&A
Discussion options

You must be logged in to vote

We had a replace feature to support this but it ran into issues, see #1603. I hadn't re-opened the original request (#1603), so I did so.

For me, one big question that would need to be answered is why not just add those subcommands to the parent command like we do for git stash in https://docs.rs/clap/latest/clap/_derive/_cookbook/git_derive/index.html

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by danielyrovas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants