summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2024-03-29 10:19:10 +0100
committerGitHub <noreply@github.com>2024-03-29 10:19:10 +0100
commitd390ee190251870aa9c64f897ee255f7b8ad19a1 (patch)
tree12529d7aa1ca2ca59f0453bfcc11633c5cf8e19a /lib
parent4f9fe6f9bf07333e7eaa282153068c24497fcdaa (diff)
downloadspack-d390ee190251870aa9c64f897ee255f7b8ad19a1.tar.gz
spack-d390ee190251870aa9c64f897ee255f7b8ad19a1.tar.bz2
spack-d390ee190251870aa9c64f897ee255f7b8ad19a1.tar.xz
spack-d390ee190251870aa9c64f897ee255f7b8ad19a1.zip
spack load: remove --only argument (#42120)
The argument was deprecated in v0.21 and slated for removal in v0.22.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/load.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/spack/spack/cmd/load.py b/lib/spack/spack/cmd/load.py
index a34b72ebb2..81f1319484 100644
--- a/lib/spack/spack/cmd/load.py
+++ b/lib/spack/spack/cmd/load.py
@@ -5,8 +5,6 @@
import sys
-import llnl.util.tty as tty
-
import spack.cmd
import spack.cmd.find
import spack.environment as ev
@@ -71,16 +69,6 @@ def setup_parser(subparser):
)
subparser.add_argument(
- "--only",
- default="package,dependencies",
- dest="things_to_load",
- choices=["package", "dependencies"],
- help="select whether to load the package and its dependencies\n\n"
- "the default is to load the package and all dependencies. alternatively, "
- "one can decide to load only the package or only the dependencies",
- )
-
- subparser.add_argument(
"--list",
action="store_true",
default=False,
@@ -110,11 +98,6 @@ def load(parser, args):
)
return 1
- if args.things_to_load != "package,dependencies":
- tty.warn(
- "The `--only` flag in spack load is deprecated and will be removed in Spack v0.22"
- )
-
with spack.store.STORE.db.read_transaction():
env_mod = uenv.environment_modifications_for_specs(*specs)
for spec in specs: