Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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>
- Loading branch information
Showing
2 changed files
with
97 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' |