-
|
I want to know if there is a way to parse subcommands with any unique prefix. I only found a way to approach this by using aliases and putting all possible and non-conflict subcommands manually. But with the increase of subcommand number, it'll become unmaintainable. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
I generally recommend having a fixed set of aliases (e.g. |
Beta Was this translation helpful? Give feedback.
I generally recommend having a fixed set of aliases (e.g.
cargo bbeing an alias forcargo build) rather than allowing it to be arbitrary as that introduces backwards-compatibility hazards but we do have theCommand::infer_subcommandsfeature for this.