summaryrefslogtreecommitdiff
path: root/lib/spack/spack/cmd/pydoc.py
blob: cca82ec1a4efd19ada5161a4bc024ff526cf4106 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)


description = "run pydoc from within spack"
section = "developer"
level = "long"


def setup_parser(subparser):
    subparser.add_argument("entity", help="run pydoc help on entity")


def pydoc(parser, args):
    help(args.entity)