Browse Source

avm: Add short alias for `install` and `list` commands (#3326)

Arihant Bansal 11 months ago
parent
commit
3c24ba2b14
2 changed files with 3 additions and 2 deletions
  1. 1 0
      CHANGELOG.md
  2. 2 2
      avm/src/main.rs

+ 1 - 0
CHANGELOG.md

@@ -56,6 +56,7 @@ The minor version will be incremented upon a breaking change and the patch versi
 - cli: Add `--program-id` option to `idl convert` command ([#3309](https://github.com/coral-xyz/anchor/pull/3309)).
 - lang: Generate documentation of constants in `declare_program!` ([#3311](https://github.com/coral-xyz/anchor/pull/3311)).
 - cli: Add support for fetching legacy IDLs ([#3324](https://github.com/coral-xyz/anchor/pull/3324)).
+- avm: Add short alias for `install` and `list` command ([#3326])(https://github.com/coral-xyz/anchor/pull/3326).
 
 ### Fixes
 

+ 2 - 2
avm/src/main.rs

@@ -17,7 +17,7 @@ pub enum Commands {
         #[clap(value_parser = parse_version, required = false)]
         version: Option<Version>,
     },
-    #[clap(about = "Install a version of Anchor")]
+    #[clap(about = "Install a version of Anchor", alias = "i")]
     Install {
         /// Anchor version or commit
         #[clap(value_parser = parse_install_target)]
@@ -32,7 +32,7 @@ pub enum Commands {
         #[clap(value_parser = parse_version)]
         version: Version,
     },
-    #[clap(about = "List available versions of Anchor")]
+    #[clap(about = "List available versions of Anchor", alias = "ls")]
     List {},
     #[clap(about = "Update to the latest Anchor version")]
     Update {},