diff options
author | Danny McClanahan <1305167+cosmicexplorer@users.noreply.github.com> | 2024-03-25 10:13:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-25 07:13:43 -0700 |
commit | 303a0b36538911e89da361e4f1850e811f743139 (patch) | |
tree | a53abe9ee8c71ef90696ffc7b6ffe09fd76a136a /lib | |
parent | 9f07544bdec2d1f5ebd3693533d578e363b58de7 (diff) | |
download | spack-303a0b36538911e89da361e4f1850e811f743139.tar.gz spack-303a0b36538911e89da361e4f1850e811f743139.tar.bz2 spack-303a0b36538911e89da361e4f1850e811f743139.tar.xz spack-303a0b36538911e89da361e4f1850e811f743139.zip |
add command_line scope to help metavar (#42890)
It's now possible to add config on the command line with `spack -c <CONFIG_VARS> ...`, 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
...
```
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/config.py b/lib/spack/spack/config.py index 982b730f16..f58c331edb 100644 --- a/lib/spack/spack/config.py +++ b/lib/spack/spack/config.py @@ -107,7 +107,7 @@ CONFIG_DEFAULTS = { #: 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-" |