[Docs] add version number to `nvm —help` output

Jarvis Mercer - Amir Mohammad Safari (AMSL) 2019-01-27 04:13:12 +03:30 committed by Jordan Harband
parent 41eb40821b
commit 1f7f0c2d81
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 2 additions and 1 deletions

3
nvm.sh
View File

@ -2326,8 +2326,9 @@ nvm() {
NVM_IOJS_PREFIX="$(nvm_iojs_prefix)"
local NVM_NODE_PREFIX
NVM_NODE_PREFIX="$(nvm_node_prefix)"
NVM_VERSION="$(nvm --version)"
nvm_echo
nvm_echo "Node Version Manager"
nvm_echo "Node Version Manager (v${NVM_VERSION})"
nvm_echo
nvm_echo 'Note: <version> refers to any version-like string nvm understands. This includes:'
nvm_echo ' - full or partial version numbers, starting with an optional "v" (0.10, v0.1.2, v1)'