summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2013-10-11 23:23:41 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2013-10-11 23:23:41 -0700
commit09fd944de5445a29aa1828cd74d0083dcee057cb (patch)
tree4b728fabe04fc639c42cd8037035dd20f04d513f /lib
parentbb63327da0483d163f4d7c479054848ae46cc431 (diff)
downloadspack-09fd944de5445a29aa1828cd74d0083dcee057cb.tar.gz
spack-09fd944de5445a29aa1828cd74d0083dcee057cb.tar.bz2
spack-09fd944de5445a29aa1828cd74d0083dcee057cb.tar.xz
spack-09fd944de5445a29aa1828cd74d0083dcee057cb.zip
Command to run pydoc on spack classes.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/doc.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/spack/spack/cmd/doc.py b/lib/spack/spack/cmd/doc.py
new file mode 100644
index 0000000000..c212ebf1fc
--- /dev/null
+++ b/lib/spack/spack/cmd/doc.py
@@ -0,0 +1,9 @@
+
+description = "Run pydoc from within spack."
+
+def setup_parser(subparser):
+ subparser.add_argument('entity', help="Run pydoc help on entity")
+
+
+def doc(parser, args):
+ help(args.entity)