diff --git a/nvm.sh b/nvm.sh index 8c410df..110b1ea 100755 --- a/nvm.sh +++ b/nvm.sh @@ -2999,6 +2999,9 @@ nvm() { --) break ;; '-h'|'help'|'--help') NVM_NO_COLORS="" + if [[ "$NVM_NO_HELP" -eq 1 ]]; then + break; + fi for j in "$@"; do if [ "${j}" = '--no-colors' ]; then NVM_NO_COLORS="${j}"