summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2022-04-28 02:37:15 -0700
committerGitHub <noreply@github.com>2022-04-28 11:37:15 +0200
commit3e863848f8f9acd421daed7fe4d0c2578787c06e (patch)
tree5824a9fbfdef6397141b86d44910fcb397980a98
parente7a0b952abc2b0cb5d1253ae77cea018ea792636 (diff)
downloadspack-3e863848f8f9acd421daed7fe4d0c2578787c06e.tar.gz
spack-3e863848f8f9acd421daed7fe4d0c2578787c06e.tar.bz2
spack-3e863848f8f9acd421daed7fe4d0c2578787c06e.tar.xz
spack-3e863848f8f9acd421daed7fe4d0c2578787c06e.zip
build_env/test_env: add concretizer args (#30289)
-rw-r--r--lib/spack/spack/cmd/common/env_utility.py2
-rwxr-xr-xshare/spack/spack-completion.bash4
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/spack/spack/cmd/common/env_utility.py b/lib/spack/spack/cmd/common/env_utility.py
index 2b1c82d401..2081263eab 100644
--- a/lib/spack/spack/cmd/common/env_utility.py
+++ b/lib/spack/spack/cmd/common/env_utility.py
@@ -18,6 +18,8 @@ from spack.util.environment import dump_environment, pickle_environment
def setup_parser(subparser):
arguments.add_common_arguments(subparser, ['clean', 'dirty'])
+ arguments.add_concretizer_args(subparser)
+
subparser.add_argument(
'--dump', metavar="FILE",
help="dump a source-able environment to FILE"
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index f0c81f11db..90793a2401 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -488,7 +488,7 @@ _spack_bootstrap_untrust() {
_spack_build_env() {
if $list_options
then
- SPACK_COMPREPLY="-h --help --clean --dirty --dump --pickle"
+ SPACK_COMPREPLY="-h --help --clean --dirty -U --fresh --reuse --dump --pickle"
else
_all_packages
fi
@@ -1769,7 +1769,7 @@ _spack_test_remove() {
_spack_test_env() {
if $list_options
then
- SPACK_COMPREPLY="-h --help --clean --dirty --dump --pickle"
+ SPACK_COMPREPLY="-h --help --clean --dirty -U --fresh --reuse --dump --pickle"
else
_all_packages
fi