Support --dependencies for recursively loading modules.

This commit is contained in:
Michael Kuhn 2016-07-14 20:14:06 +02:00
parent fcfe2618d5
commit 64d91943ec

View File

@ -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"