Skip to content

Commit

Permalink
Add explanatory note for <version>
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Aug 6, 2015
1 parent c07838f commit 3fcff87
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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: <version> 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"
Expand Down

0 comments on commit 3fcff87

Please sign in to comment.