mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-07-18 12:58:21 +08:00
[Fix] ensure --help is intercepted on any command
Co-authored-by: Naomi Quinones <52065567+naomiquinones@users.noreply.github.com> Co-authored-by: Dena Burd <me@Denas-MacBook-Air.local>
This commit is contained in:
co-authored by
Dena Burd
parent
a01deb11dc
commit
1bf567bd0b
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
die () { echo "$@" ; exit 1; }
|
||||
|
||||
\. ../../../nvm.sh
|
||||
|
||||
TERM=dumb nvm clear-cache --help | grep 'Usage:' || die 'did not print help menu'
|
||||
TERM=dumb nvm cache help version | grep 'Usage:' || die 'did not print help menu'
|
||||
TERM=dumb nvm cache -h version| grep 'Usage:' || die 'did not print help menu'
|
||||
Reference in New Issue
Block a user