diff --git a/README.md b/README.md index a03c6f5..4e65a5b 100644 --- a/README.md +++ b/README.md @@ -152,11 +152,11 @@ Activates `[VERSION]` as the current Node version. If no version provided, it wi Display currently activated Node version. -### `fnm ls` +### `fnm list` Lists the installed Node versions. -### `fnm ls-remote` +### `fnm list-remote` Lists the Node versions available to download remotely. diff --git a/src/cli.rs b/src/cli.rs index 0d8f883..e7dbd05 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -6,11 +6,11 @@ use structopt::StructOpt; #[derive(StructOpt, Debug)] pub enum SubCommand { /// List all remote Node.js versions - #[structopt(name = "ls-remote")] + #[structopt(name = "list-remote", aliases = &["ls-remote"])] LsRemote(commands::ls_remote::LsRemote), /// List all locally installed Node.js versions - #[structopt(name = "ls")] + #[structopt(name = "list", aliases = &["ls"])] LsLocal(commands::ls_local::LsLocal), /// Install a new Node.js version