[New] add `nvm -v` as an alias for `nvm --version`

Fixes #2200.
Dena Burd 2020-07-27 10:26:35 -07:00 committed by Jordan Harband
parent 06c3bf6a8f
commit 55eafcd814
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -3580,7 +3580,7 @@ nvm() {
esac
NVM_VERSION_ONLY=true NVM_LTS="${NVM_LTS-}" nvm_remote_version "${PATTERN:-node}"
;;
"--version")
"--version" | "-v")
nvm_echo '0.35.3'
;;
"unload")