Skip to content

Parse subcommand with any unique prefix #5596

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

You must be logged in to vote

I generally recommend having a fixed set of aliases (e.g. cargo b being an alias for cargo build) rather than allowing it to be arbitrary as that introduces backwards-compatibility hazards but we do have the Command::infer_subcommands feature for this.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lxl66566
Comment options

Answer selected by lxl66566
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