Skip to content

Commit

Permalink
avm: Add short alias for install and list commands (#3326)
Browse files Browse the repository at this point in the history
  • Loading branch information
arihantbansal authored Oct 22, 2024
1 parent b72abe0 commit 3c24ba2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions avm/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand All @@ -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 {},
Expand Down

0 comments on commit 3c24ba2

Please sign in to comment.