summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2023-12-11 01:17:37 -0800
committerGitHub <noreply@github.com>2023-12-11 10:17:37 +0100
commit57ad848f47a5e175b9523360042cfc607b85fe81 (patch)
tree6499e81bddcf351d53ac1a88630921f62ce97396
parent15623d807766d75770ab7a3a307cd37258d6ace4 (diff)
downloadspack-57ad848f47a5e175b9523360042cfc607b85fe81.tar.gz
spack-57ad848f47a5e175b9523360042cfc607b85fe81.tar.bz2
spack-57ad848f47a5e175b9523360042cfc607b85fe81.tar.xz
spack-57ad848f47a5e175b9523360042cfc607b85fe81.zip
commands: better install status help formatting (#41527)
Before (hard to read, doesn't fit on small terminals): : ```console -I, --install-status show install status of packages packages can be: installed [+], missing and needed by an installed package [-], installed in an upstream instance [^], or not installed (no annotation) ``` After (fits in 80 columns): ```console -I, --install-status show install status of packages [+] installed [^] installed in an upstream - not installed [-] missing dep of installed package ```
-rw-r--r--lib/spack/spack/cmd/common/arguments.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/spack/spack/cmd/common/arguments.py b/lib/spack/spack/cmd/common/arguments.py
index 883a7d31c2..c30b06ce74 100644
--- a/lib/spack/spack/cmd/common/arguments.py
+++ b/lib/spack/spack/cmd/common/arguments.py
@@ -384,10 +384,11 @@ def install_status():
"--install-status",
action="store_true",
default=True,
- help="show install status of packages\n\npackages can be: "
- "installed [+], missing and needed by an installed package [-], "
- "installed in an upstream instance [^], "
- "or not installed (no annotation)",
+ help=(
+ "show install status of packages\n"
+ "[+] installed [^] installed in an upstream\n"
+ " - not installed [-] missing dep of installed package\n"
+ ),
)