summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2018-11-11 17:18:21 -0600
committerPeter Scheibel <scheibel1@llnl.gov>2018-11-11 17:18:21 -0600
commit25f8abb9639d62bd9078cdad62ad0c1c10488858 (patch)
tree803fe45c708eb67487aa63f69e61ef9ead4af35e
parent7d98c73e40c2229e32e3c74f049a2f5983181e7e (diff)
downloadspack-25f8abb9639d62bd9078cdad62ad0c1c10488858.tar.gz
spack-25f8abb9639d62bd9078cdad62ad0c1c10488858.tar.bz2
spack-25f8abb9639d62bd9078cdad62ad0c1c10488858.tar.xz
spack-25f8abb9639d62bd9078cdad62ad0c1c10488858.zip
bugfix: make defaults consistent --use-cache and --no-cache (#9803)
-rw-r--r--lib/spack/spack/cmd/install.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/cmd/install.py b/lib/spack/spack/cmd/install.py
index 6321063279..2ec6efc04f 100644
--- a/lib/spack/spack/cmd/install.py
+++ b/lib/spack/spack/cmd/install.py
@@ -77,10 +77,10 @@ the dependencies"""
cache_group = subparser.add_mutually_exclusive_group()
cache_group.add_argument(
- '--use-cache', action='store_true', dest='use_cache',
- help="check for pre-built Spack packages in mirrors")
+ '--use-cache', action='store_true', dest='use_cache', default=True,
+ help="check for pre-built Spack packages in mirrors (default)")
cache_group.add_argument(
- '--no-cache', action='store_false', dest='use_cache',
+ '--no-cache', action='store_false', dest='use_cache', default=True,
help="do not check for pre-built Spack packages in mirrors")
subparser.add_argument(