help_command#
- ansys.mapdl.core.cli.help.help_command(command)#
Render the PyMAPDL docstring of a MAPDL command for a terminal.
- Parameters:
- command
str MAPDL command name to look up, including any leading
/or*prefix.*and\*map to theSTAR<CMD>key and/maps toSLASH<CMD>, so the prefix is significant.
- command
- Returns:
strThe docstring formatted for a colour terminal, including ANSI escape sequences. Strip them with
click.strip_ansi()when writing to a plain stream.
- Raises:
ModuleNotFoundErrorWhen the
rich-rstpackage is not installed.ValueErrorWhen no PyMAPDL method matches command, or when the matching method has no docstring.
- Return type:
Examples
Get the documentation of the
/PREP7command:>>> from ansys.mapdl.core.cli.help import help_command >>> print(help_command("/PREP7"))