diff --git a/nvm.sh b/nvm.sh index a62b85b..376bf1d 100755 --- a/nvm.sh +++ b/nvm.sh @@ -1179,9 +1179,18 @@ nvm() { case $1 in "help" ) + local NVM_IOJS_PREFIX + NVM_IOJS_PREFIX="$(nvm_iojs_prefix)" + local NVM_NODE_PREFIX + NVM_NODE_PREFIX="$(nvm_node_prefix)" echo echo "Node Version Manager" echo + echo 'Note: refers to any version-like string nvm understands. This includes:' + echo ' - full or partial version numbers, starting with an optional "v" (0.10, v0.1.2, v1)' + echo " - default (built-in) aliases: $NVM_NODE_PREFIX, stable, unstable, $NVM_IOJS_PREFIX, system" + echo ' - custom aliases you define with `nvm alias foo`' + echo echo "Usage:" echo " nvm help Show this message" echo " nvm --version Print out the latest released version of nvm"