summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/cmd/install.py9
-rwxr-xr-xshare/spack/spack-completion.bash2
2 files changed, 9 insertions, 2 deletions
diff --git a/lib/spack/spack/cmd/install.py b/lib/spack/spack/cmd/install.py
index 39bcc96ce5..69158275f6 100644
--- a/lib/spack/spack/cmd/install.py
+++ b/lib/spack/spack/cmd/install.py
@@ -160,8 +160,15 @@ packages. If neither are chosen, don't run tests for any packages."""
action='store_true',
help="Show usage instructions for CDash reporting"
)
+ subparser.add_argument(
+ '-y', '--yes-to-all',
+ action='store_true',
+ dest='yes_to_all',
+ help="""assume "yes" is the answer to every confirmation request.
+To run completely non-interactively, also specify '--no-checksum'."""
+ )
add_cdash_args(subparser, False)
- arguments.add_common_arguments(subparser, ['yes_to_all', 'spec'])
+ arguments.add_common_arguments(subparser, ['spec'])
def add_cdash_args(subparser, add_help):
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index d4b6be2609..f77f60dfc9 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -1002,7 +1002,7 @@ _spack_info() {
_spack_install() {
if $list_options
then
- SPACK_COMPREPLY="-h --help --only -u --until -j --jobs --overwrite --fail-fast --keep-prefix --keep-stage --dont-restage --use-cache --no-cache --cache-only --no-check-signature --show-log-on-error --source -n --no-checksum -v --verbose --fake --only-concrete -f --file --clean --dirty --test --run-tests --log-format --log-file --help-cdash --cdash-upload-url --cdash-build --cdash-site --cdash-track --cdash-buildstamp -y --yes-to-all"
+ SPACK_COMPREPLY="-h --help --only -u --until -j --jobs --overwrite --fail-fast --keep-prefix --keep-stage --dont-restage --use-cache --no-cache --cache-only --no-check-signature --show-log-on-error --source -n --no-checksum -v --verbose --fake --only-concrete -f --file --clean --dirty --test --run-tests --log-format --log-file --help-cdash -y --yes-to-all --cdash-upload-url --cdash-build --cdash-site --cdash-track --cdash-buildstamp"
else
_all_packages
fi