diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2018-07-10 11:09:19 +0200 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2018-07-24 11:27:17 -0700 |
commit | 576f0c98d2a32bb55765210ffbc9ddebb0864b70 (patch) | |
tree | d7ba93ec4f91f53fea786acb1f4f0dde20371faa | |
parent | 443d702971be3ce7fa203348cb3eae16b55e0909 (diff) | |
download | spack-576f0c98d2a32bb55765210ffbc9ddebb0864b70.tar.gz spack-576f0c98d2a32bb55765210ffbc9ddebb0864b70.tar.bz2 spack-576f0c98d2a32bb55765210ffbc9ddebb0864b70.tar.xz spack-576f0c98d2a32bb55765210ffbc9ddebb0864b70.zip |
Added --dependencies to the help text of spack load
fixes #6321
-rw-r--r-- | lib/spack/spack/cmd/load.py | 5 | ||||
-rw-r--r-- | 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): |