diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-09-08 18:15:01 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-09-08 18:15:01 +0300 |
commit | 669a34a9bd7cbbd92203d5a18260de3d4aa0b7f2 (patch) | |
tree | b79f279c333aef1d3df113228decaf97d56fadf1 | |
parent | 9d600cf3911dc0a7076bc3b3c9d9c2a7a06c2ac0 (diff) | |
download | vmadm-669a34a9bd7cbbd92203d5a18260de3d4aa0b7f2.tar.gz |
feat: add aliases to some subcommands
create = new
remove = delete
stop = shutdown
Sponsored-by: author
-rw-r--r-- | src/bin/vmadm.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/vmadm.rs b/src/bin/vmadm.rs index a10d3d9..159a172 100644 --- a/src/bin/vmadm.rs +++ b/src/bin/vmadm.rs @@ -20,6 +20,7 @@ struct Cli { #[derive(Debug, Parser)] enum Command { + #[clap(visible_alias = "create")] New { #[clap(flatten)] common: CommonOptions, @@ -51,6 +52,7 @@ enum Command { common: CommonOptions, }, + #[clap(visible_alias = "remove")] Delete { #[clap(flatten)] common: CommonOptions, @@ -65,6 +67,7 @@ enum Command { specs: Vec<PathBuf>, }, + #[clap(visible_alias = "stop")] Shutdown { #[clap(flatten)] common: CommonOptions, |