summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2017-05-08 13:18:29 -0700
committerGitHub <noreply@github.com>2017-05-08 13:18:29 -0700
commitff3b5d88e4229516e9655a9a75f818453613e8e4 (patch)
tree56889884b1a68d740f1ddd702125c87e47a64493 /share
parent7923579a424d8d9280717760cea1742cdb594d07 (diff)
downloadspack-ff3b5d88e4229516e9655a9a75f818453613e8e4.tar.gz
spack-ff3b5d88e4229516e9655a9a75f818453613e8e4.tar.bz2
spack-ff3b5d88e4229516e9655a9a75f818453613e8e4.tar.xz
spack-ff3b5d88e4229516e9655a9a75f818453613e8e4.zip
rework spack help (#3033)
- Full help is now only generated lazily, when needed. - Executing specific commands doesn't require loading all of them. - All commands are only loaded if we need them for help. - There is now short and long help: - short help (spack help) shows only basic spack options - long help (spack help -a) shows all spack options - Both divide help on commands into high-level sections - Commands now specify attributes from which help is auto-generated: - description: used in help to describe the command. - section: help section - level: short or long - Clean up command descriptions - Add a `spack docs` command to open full documentation in the browser. - move `spack doc` command to `spack pydoc` for clarity - Add a `spack --spec` command to show documentation on the spec syntax.
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/qa/run-unit-tests4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/spack/qa/run-unit-tests b/share/spack/qa/run-unit-tests
index fe2ec6f54a..87203ba915 100755
--- a/share/spack/qa/run-unit-tests
+++ b/share/spack/qa/run-unit-tests
@@ -20,6 +20,10 @@ cd "$SPACK_ROOT"
# Print compiler information
spack config get compilers
+# Run spack help to cover command import
+${coverage_run} bin/spack -h
+${coverage_run} bin/spack help -a
+
# Profile and print top 20 lines for a simple call to spack spec
${coverage_run} bin/spack -p --lines 20 spec mpileaks