Skip to content
Myr

[Fix] `nvm use`: improve help output with bare `nvm use` and no `.nvmrc`

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Closes #1914.

authored by Jordan Harband · committed by Jordan Harband · parent 011810e · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:nvm.sh+4 added
2907 unmodified lines
2908 PROVIDED_VERSION="${NVM_RC_VERSION}"2909 VERSION="$(nvm_version "${PROVIDED_VERSION}")"2910 fi2911 unset NVM_RC_VERSION2912 if [ -z "${VERSION}" ]; then2913 nvm_err 'Please see `nvm --help` or https://github.com/nvm-sh/nvm#nvmrc for more information.'2914 return 1272915 fi2916 else2917 VERSION="$(nvm_match_version "${PROVIDED_VERSION}")"2918 fi2919
738 unmodified lines