diff options
author | Richarda Butler <39577672+RikkiButler20@users.noreply.github.com> | 2020-09-08 12:18:25 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-08 13:18:25 -0700 |
commit | d721bd80708db0498119c0f48b420afc9010ed63 (patch) | |
tree | a77c1d53d2428478f6185b7541096a3e70d4f699 /lib | |
parent | ccd65895a63261b2c80a054ced8e29df50dcd25f (diff) | |
download | spack-d721bd80708db0498119c0f48b420afc9010ed63.tar.gz spack-d721bd80708db0498119c0f48b420afc9010ed63.tar.bz2 spack-d721bd80708db0498119c0f48b420afc9010ed63.tar.xz spack-d721bd80708db0498119c0f48b420afc9010ed63.zip |
commands: update help for `spack install --yes-to-all` (#18367)
`spack install --yes-to-all` doesn't actually make the build non-interactive,
but that is why people typically use it. This documents that you must also
specify `--no-checksum` for a fully non-interactive build.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/install.py | 9 |
1 files changed, 8 insertions, 1 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): |