diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/doc.py | 9 |
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) |