summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/setup-env.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/spack/setup-env.sh b/share/spack/setup-env.sh
index 79688455bf..ce6efc66ef 100755
--- a/share/spack/setup-env.sh
+++ b/share/spack/setup-env.sh
@@ -77,7 +77,7 @@ function spack {
_sp_arg="$1"
shift
fi
- if [ "$_sp_arg" = "-h" ]; then
+ if [[ "$_sp_arg" = "-h" || "$_sp_arg" = "--help" ]]; then
command spack cd -h
else
LOC="$(spack location $_sp_arg "$@")"
@@ -96,7 +96,7 @@ function spack {
shift
fi
- if [ "$_sp_arg" = "-h" ]; then
+ if [[ "$_sp_arg" = "-h" || "$_sp_arg" = "--help" ]]; then
command spack env -h
else
case $_sp_arg in