summaryrefslogtreecommitdiff
path: root/lib/spack/spack/cmd/install.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/spack/cmd/install.py')
-rw-r--r--lib/spack/spack/cmd/install.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/spack/spack/cmd/install.py b/lib/spack/spack/cmd/install.py
index 87fad76181..f030e5b2df 100644
--- a/lib/spack/spack/cmd/install.py
+++ b/lib/spack/spack/cmd/install.py
@@ -66,6 +66,9 @@ the dependencies"""
'--keep-stage', action='store_true', dest='keep_stage',
help="don't remove the build stage if installation succeeds")
subparser.add_argument(
+ '--restage', action='store_true', dest='restage',
+ help="if a partial install is detected, delete prior state")
+ subparser.add_argument(
'-n', '--no-checksum', action='store_true', dest='no_checksum',
help="do not check packages against checksum")
subparser.add_argument(
@@ -307,6 +310,7 @@ def install(parser, args, **kwargs):
kwargs.update({
'keep_prefix': args.keep_prefix,
'keep_stage': args.keep_stage,
+ 'restage': args.restage,
'install_deps': 'dependencies' in args.things_to_install,
'make_jobs': args.jobs,
'run_tests': args.run_tests,