diff --git a/lib/spack/spack/cmd/spec.py b/lib/spack/spack/cmd/spec.py index fd03f09e575956cecf1fa6787288b7fe676f4f25..316ec1c35aee63555b4d0e4df691748162634621 100644 --- a/lib/spack/spack/cmd/spec.py +++ b/lib/spack/spack/cmd/spec.py @@ -34,7 +34,7 @@ def setup_parser(subparser): const='yaml', help='print concrete spec as YAML') subparser.add_argument( '-j', '--json', action='store_const', dest='format', default=None, - const='json', help='print concrete spec as YAML') + const='json', help='print concrete spec as JSON') subparser.add_argument( '-c', '--cover', action='store', default='nodes', choices=['nodes', 'edges', 'paths'],