From 576f0c98d2a32bb55765210ffbc9ddebb0864b70 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Tue, 10 Jul 2018 11:09:19 +0200 Subject: Added --dependencies to the help text of spack load fixes #6321 --- lib/spack/spack/cmd/load.py | 5 +++-- lib/spack/spack/cmd/use.py | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/spack/spack/cmd/load.py b/lib/spack/spack/cmd/load.py index 246d6fe5e2..115c50dc98 100644 --- a/lib/spack/spack/cmd/load.py +++ b/lib/spack/spack/cmd/load.py @@ -23,7 +23,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ############################################################################## import argparse -from spack.cmd.common import print_module_placeholder_help +from spack.cmd.common import print_module_placeholder_help, arguments description = "add package to environment using `module load`" section = "environment" @@ -36,7 +36,8 @@ def setup_parser(subparser): subparser.add_argument( 'spec', nargs=argparse.REMAINDER, help="spec of package to load with modules " - "(if -, read specs from STDIN)") + ) + arguments.add_common_arguments(subparser, ['recurse_dependencies']) def load(parser, args): diff --git a/lib/spack/spack/cmd/use.py b/lib/spack/spack/cmd/use.py index da4a23586c..11dc11b7b9 100644 --- a/lib/spack/spack/cmd/use.py +++ b/lib/spack/spack/cmd/use.py @@ -23,7 +23,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ############################################################################## import argparse -from spack.cmd.common import print_module_placeholder_help +from spack.cmd.common import print_module_placeholder_help, arguments description = "add package to environment using dotkit" section = "environment" @@ -36,6 +36,7 @@ def setup_parser(subparser): subparser.add_argument( 'spec', nargs=argparse.REMAINDER, help='spec of package to use with dotkit') + arguments.add_common_arguments(subparser, ['recurse_dependencies']) def use(parser, args): -- cgit v1.2.3-70-g09d2