summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-05-17 22:29:08 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2015-05-17 22:29:48 -0700
commit76cb3eb7d2cea7343a51c578fdcec090890f5441 (patch)
tree7b11a84746a6bad0ffc4ca6af4926a9cbde9458d /bin
parent50970b72d8721c19fa37a8ea934d9b4f4cdbd62a (diff)
downloadspack-76cb3eb7d2cea7343a51c578fdcec090890f5441.tar.gz
spack-76cb3eb7d2cea7343a51c578fdcec090890f5441.tar.bz2
spack-76cb3eb7d2cea7343a51c578fdcec090890f5441.tar.xz
spack-76cb3eb7d2cea7343a51c578fdcec090890f5441.zip
Add help on specs to top of spack -h
Diffstat (limited to 'bin')
-rwxr-xr-xbin/spack16
1 files changed, 15 insertions, 1 deletions
diff --git a/bin/spack b/bin/spack
index 013acf4db8..2e0ee0b3cf 100755
--- a/bin/spack
+++ b/bin/spack
@@ -49,13 +49,27 @@ except OSError:
# clean up the scope and start using spack package instead.
del SPACK_FILE, SPACK_PREFIX, SPACK_LIB_PATH
import llnl.util.tty as tty
+from llnl.util.tty.color import *
import spack
from spack.error import SpackError
from external import argparse
# Command parsing
parser = argparse.ArgumentParser(
- description='Spack: the Supercomputing PACKage Manager.')
+ formatter_class=argparse.RawTextHelpFormatter,
+ description="Spack: the Supercomputing PACKage Manager." + colorize("""
+
+spec expressions:
+ PACKAGE [CONSTRAINTS]
+
+ CONSTRAINTS:
+ @c{@version}
+ @g{%compiler @compiler_version}
+ @B{+variant}
+ @r{-variant} or @r{~variant}
+ @m{=architecture}
+ [^DEPENDENCY [CONSTRAINTS] ...]"""))
+
parser.add_argument('-d', '--debug', action='store_true',
help="Write out debug logs during compile")
parser.add_argument('-k', '--insecure', action='store_true',