summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-02-08 23:26:15 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2015-02-08 23:26:15 -0800
commitaae364b4c9ffdf8949a8c7ce5a7e63c9772703c0 (patch)
tree1b72dc4939337677cc75acafccfd3926dcdcc59b /lib
parentc077f0570531aac76b9182a96a2a37ee0e633989 (diff)
downloadspack-aae364b4c9ffdf8949a8c7ce5a7e63c9772703c0.tar.gz
spack-aae364b4c9ffdf8949a8c7ce5a7e63c9772703c0.tar.bz2
spack-aae364b4c9ffdf8949a8c7ce5a7e63c9772703c0.tar.xz
spack-aae364b4c9ffdf8949a8c7ce5a7e63c9772703c0.zip
"spack extensions" shows total extension count.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/extensions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/extensions.py b/lib/spack/spack/cmd/extensions.py
index c6b6145321..ae73d8ac55 100644
--- a/lib/spack/spack/cmd/extensions.py
+++ b/lib/spack/spack/cmd/extensions.py
@@ -75,7 +75,8 @@ def extensions(parser, args):
if not extensions:
tty.msg("%s has no extensions." % spec.cshort_spec)
return
- tty.msg("%s extensions:" % spec.cshort_spec)
+ tty.msg(spec.cshort_spec)
+ tty.msg("%d extensions:" % len(extensions))
colify(ext.name for ext in extensions)
# List specs of installed extensions.