summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStephen Herbein <sherbein@udel.edu>2015-11-12 08:15:38 -0800
committerStephen Herbein <sherbein@udel.edu>2015-11-12 08:15:38 -0800
commit9c30e0210b55a6f5bca048359135ae5a83039de5 (patch)
tree1bf37b25100cb80584d52b927aafe695601adb94 /lib
parent14b30de4079418f737c863b161f3691046af26ab (diff)
downloadspack-9c30e0210b55a6f5bca048359135ae5a83039de5.tar.gz
spack-9c30e0210b55a6f5bca048359135ae5a83039de5.tar.bz2
spack-9c30e0210b55a6f5bca048359135ae5a83039de5.tar.xz
spack-9c30e0210b55a6f5bca048359135ae5a83039de5.zip
Fixed -l flag for 'spack extensions'
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/extensions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/cmd/extensions.py b/lib/spack/spack/cmd/extensions.py
index 7cadc424b0..99be448288 100644
--- a/lib/spack/spack/cmd/extensions.py
+++ b/lib/spack/spack/cmd/extensions.py
@@ -37,7 +37,7 @@ description = "List extensions for package."
def setup_parser(subparser):
format_group = subparser.add_mutually_exclusive_group()
format_group.add_argument(
- '-l', '--long', action='store_const', dest='mode', const='long',
+ '-l', '--long', action='store_true', dest='long',
help='Show dependency hashes as well as versions.')
format_group.add_argument(
'-p', '--paths', action='store_const', dest='mode', const='paths',
@@ -95,4 +95,4 @@ def extensions(parser, args):
tty.msg("None activated.")
return
tty.msg("%d currently activated:" % len(activated))
- spack.cmd.find.display_specs(activated.values(), mode=args.mode)
+ spack.cmd.find.display_specs(activated.values(), mode=args.mode, long=args.long)