diff --git a/share/spack/setup-env.sh b/share/spack/setup-env.sh
index c5245add5e5e9e5cee2b0e010807f6fa7d48521b..19206255db0ad89780199515c92da5076f8de816 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"