Merge pull request #160 from SteVwonder/stevwonder/develop

Fixed -l flag for 'spack extensions'
This commit is contained in:
Todd Gamblin 2015-11-23 15:50:18 -08:00
commit 1447fd0a12

View file

@ -37,7 +37,7 @@
def setup_parser(subparser): def setup_parser(subparser):
format_group = subparser.add_mutually_exclusive_group() format_group = subparser.add_mutually_exclusive_group()
format_group.add_argument( 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.') help='Show dependency hashes as well as versions.')
format_group.add_argument( format_group.add_argument(
'-p', '--paths', action='store_const', dest='mode', const='paths', '-p', '--paths', action='store_const', dest='mode', const='paths',
@ -95,4 +95,4 @@ def extensions(parser, args):
tty.msg("None activated.") tty.msg("None activated.")
return return
tty.msg("%d currently activated:" % len(activated)) 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)