bugfix: make defaults consistent --use-cache and --no-cache (#9803)

This commit is contained in:
Todd Gamblin 2018-11-11 17:18:21 -06:00 committed by Peter Scheibel
parent 7d98c73e40
commit 25f8abb963

View File

@ -77,10 +77,10 @@ def setup_parser(subparser):
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(