Command to run pydoc on spack classes.
This commit is contained in:
parent
bb63327da0
commit
09fd944de5
9
lib/spack/spack/cmd/doc.py
Normal file
9
lib/spack/spack/cmd/doc.py
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user