File tree 2 files changed +27
-11
lines changed
2 files changed +27
-11
lines changed Original file line number Diff line number Diff line change @@ -2345,16 +2345,11 @@ nvm() {
2345
2345
return $?
2346
2346
fi
2347
2347
2348
- local COMMAND
2349
- COMMAND=" ${1-} "
2350
- shift
2351
-
2352
- # initialize local variables
2353
- local VERSION
2354
- local ADDITIONAL_PARAMETERS
2355
-
2356
- case $COMMAND in
2357
- ' help' | ' --help' )
2348
+ argsList=(" $@ " )
2349
+ for i in ${argsList[@]}
2350
+ do
2351
+ case $i in
2352
+ ' help' |' -help' |' --help' )
2358
2353
local NVM_IOJS_PREFIX
2359
2354
NVM_IOJS_PREFIX=" $( nvm_iojs_prefix) "
2360
2355
local NVM_NODE_PREFIX
@@ -2434,8 +2429,20 @@ nvm() {
2434
2429
nvm_echo ' Note:'
2435
2430
nvm_echo ' to remove, delete, or uninstall nvm - just remove the `$NVM_DIR` folder (usually `~/.nvm`)'
2436
2431
nvm_echo
2437
- ;;
2432
+ return 0;
2433
+ ;;
2434
+ esac
2435
+ done
2436
+
2437
+ local COMMAND
2438
+ COMMAND=" ${1-} "
2439
+ shift
2438
2440
2441
+ # initialize local variables
2442
+ local VERSION
2443
+ local ADDITIONAL_PARAMETERS
2444
+
2445
+ case $COMMAND in
2439
2446
" cache" )
2440
2447
case " ${1-} " in
2441
2448
dir) nvm_cache_dir ;;
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ die () { echo " $@ " ; exit 1; }
4
+
5
+ \. ../../../nvm.sh
6
+
7
+ TERM=dumb nvm clear-cache --help | grep ' Usage:' || die ' did not print help menu'
8
+ TERM=dumb nvm cache help version | grep ' Usage:' || die ' did not print help menu'
9
+ TERM=dumb nvm cache -help version| grep ' Usage:' || die ' did not print help menu'
You can’t perform that action at this time.
0 commit comments