diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2017-06-09 21:02:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-09 21:02:16 -0700 |
commit | c67f6477854091de09ac650352db5ce97b3c76f5 (patch) | |
tree | 750c1214d55065aa9677a4be65593fb91e1717fc | |
parent | 36b8ea2f928651a53f29c0dae158f70597207173 (diff) | |
download | spack-c67f6477854091de09ac650352db5ce97b3c76f5.tar.gz spack-c67f6477854091de09ac650352db5ce97b3c76f5.tar.bz2 spack-c67f6477854091de09ac650352db5ce97b3c76f5.tar.xz spack-c67f6477854091de09ac650352db5ce97b3c76f5.zip |
Move description to top of `spack info` (#4475)
-rw-r--r-- | lib/spack/spack/cmd/info.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/spack/spack/cmd/info.py b/lib/spack/spack/cmd/info.py index f0cddad2e2..43d086d4b3 100644 --- a/lib/spack/spack/cmd/info.py +++ b/lib/spack/spack/cmd/info.py @@ -131,6 +131,14 @@ def print_text_info(pkg): header = "{0}: ".format(pkg.build_system_class) print(header, pkg.name) + + print() + print("Description:") + if pkg.__doc__: + print(pkg.format_doc(indent=4)) + else: + print(" None") + whitespaces = ''.join([' '] * (len(header) - len("Homepage: "))) print("Homepage:", whitespaces, pkg.homepage) @@ -183,13 +191,6 @@ def print_text_info(pkg): else: print(" None") - print() - print("Description:") - if pkg.__doc__: - print(pkg.format_doc(indent=4)) - else: - print(" None") - def info(parser, args): pkg = spack.repo.get(args.name) |