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.
This commit is contained in:
Richarda Butler 2020-09-08 12:18:25 -08:00 committed by GitHub
parent ccd65895a6
commit d721bd8070
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View file

@ -160,8 +160,15 @@ def setup_parser(subparser):
action='store_true', action='store_true',
help="Show usage instructions for CDash reporting" 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) 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): def add_cdash_args(subparser, add_help):

View file

@ -1002,7 +1002,7 @@ _spack_info() {
_spack_install() { _spack_install() {
if $list_options if $list_options
then 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 else
_all_packages _all_packages
fi fi