From 64d91943ec3773a539ef39be4e9ab5ab132df01a Mon Sep 17 00:00:00 2001
From: Michael Kuhn <suraia@ikkoku.de>
Date: Thu, 14 Jul 2016 20:14:06 +0200
Subject: [PATCH] Support --dependencies for recursively loading modules.

---
 share/spack/setup-env.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/spack/setup-env.sh b/share/spack/setup-env.sh
index c5245add5e..19206255db 100755
--- a/share/spack/setup-env.sh
+++ b/share/spack/setup-env.sh
@@ -101,7 +101,7 @@ function spack {
             _sp_subcommand_args=""
             _sp_module_args=""
             while [[ "$1" =~ ^- ]]; do
-                if [ "$1" = "-r" ]; then
+                if [ "$1" = "-r" -o "$1" = "--dependencies" ]; then
                     _sp_subcommand_args="$_sp_subcommand_args $1"
                 else
                     _sp_module_args="$_sp_module_args $1"
-- 
GitLab