summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-11-23 15:50:18 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2015-11-23 15:50:18 -0800
commit1447fd0a127f810be9a3671b53f40a0fa2a54388 (patch)
tree92260cbf38c54a2817462d320caf09f8d071c0f3 /lib
parent8fbd79fa2ef848d88ae5772e437148f395013303 (diff)
parent9c30e0210b55a6f5bca048359135ae5a83039de5 (diff)
downloadspack-1447fd0a127f810be9a3671b53f40a0fa2a54388.tar.gz
spack-1447fd0a127f810be9a3671b53f40a0fa2a54388.tar.bz2
spack-1447fd0a127f810be9a3671b53f40a0fa2a54388.tar.xz
spack-1447fd0a127f810be9a3671b53f40a0fa2a54388.zip
Merge pull request #160 from SteVwonder/stevwonder/develop
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)