From 303a0b36538911e89da361e4f1850e811f743139 Mon Sep 17 00:00:00 2001 From: Danny McClanahan <1305167+cosmicexplorer@users.noreply.github.com> Date: Mon, 25 Mar 2024 10:13:43 -0400 Subject: [PATCH] add command_line scope to help metavar (#42890) It's now possible to add config on the command line with `spack -c ...`, but the new `command_line` scope isn't reflected in the help output for `--scope`: ```bash > spack help config ... --scope {defaults,system,site,user}[/PLATFORM] or env:ENVIRONMENT configuration scope to read/modify ... ``` --- lib/spack/spack/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/config.py b/lib/spack/spack/config.py index 982b730f16e..f58c331edbd 100644 --- a/lib/spack/spack/config.py +++ b/lib/spack/spack/config.py @@ -107,7 +107,7 @@ #: metavar to use for commands that accept scopes #: this is shorter and more readable than listing all choices -SCOPES_METAVAR = "{defaults,system,site,user}[/PLATFORM] or env:ENVIRONMENT" +SCOPES_METAVAR = "{defaults,system,site,user,command_line}[/PLATFORM] or env:ENVIRONMENT" #: Base name for the (internal) overrides scope. _OVERRIDES_BASE_NAME = "overrides-"