mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 14:21:50 +00:00
Merge pull request #1 from cseitz-forks/cseitz-nvm-no-help-1
Added NVM_NO_HELP flag to nvm.sh
This commit is contained in:
commit
387d92cd4d
3
nvm.sh
3
nvm.sh
@ -2821,6 +2821,9 @@ nvm() {
|
|||||||
--) break ;;
|
--) break ;;
|
||||||
'-h'|'help'|'--help')
|
'-h'|'help'|'--help')
|
||||||
NVM_NO_COLORS=""
|
NVM_NO_COLORS=""
|
||||||
|
if [[ "$NVM_NO_HELP" -eq 1 ]]; then
|
||||||
|
break;
|
||||||
|
fi
|
||||||
for j in "$@"; do
|
for j in "$@"; do
|
||||||
if [ "${j}" = '--no-colors' ]; then
|
if [ "${j}" = '--no-colors' ]; then
|
||||||
NVM_NO_COLORS="${j}"
|
NVM_NO_COLORS="${j}"
|
||||||
|
Loading…
Reference in New Issue
Block a user