mirror of https://github.com/python/cpython
Doc: Note that pydoc uses and prefers ``MANPAGER`` (#125362)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
parent
298e041631
commit
0e45b1fd0f
|
@ -199,6 +199,7 @@ nitpick_ignore = [
|
||||||
('envvar', 'LC_TIME'),
|
('envvar', 'LC_TIME'),
|
||||||
('envvar', 'LINES'),
|
('envvar', 'LINES'),
|
||||||
('envvar', 'LOGNAME'),
|
('envvar', 'LOGNAME'),
|
||||||
|
('envvar', 'MANPAGER'),
|
||||||
('envvar', 'PAGER'),
|
('envvar', 'PAGER'),
|
||||||
('envvar', 'PATH'),
|
('envvar', 'PATH'),
|
||||||
('envvar', 'PATHEXT'),
|
('envvar', 'PATHEXT'),
|
||||||
|
|
|
@ -52,8 +52,9 @@ produced for that file.
|
||||||
only execute code when a file is invoked as a script and not just imported.
|
only execute code when a file is invoked as a script and not just imported.
|
||||||
|
|
||||||
When printing output to the console, :program:`pydoc` attempts to paginate the
|
When printing output to the console, :program:`pydoc` attempts to paginate the
|
||||||
output for easier reading. If the :envvar:`PAGER` environment variable is set,
|
output for easier reading. If either the :envvar:`MANPAGER` or the
|
||||||
:program:`pydoc` will use its value as a pagination program.
|
:envvar:`PAGER` environment variable is set, :program:`pydoc` will use its
|
||||||
|
value as a pagination program. When both are set, :envvar:`MANPAGER` is used.
|
||||||
|
|
||||||
Specifying a ``-w`` flag before the argument will cause HTML documentation
|
Specifying a ``-w`` flag before the argument will cause HTML documentation
|
||||||
to be written out to a file in the current directory, instead of displaying text
|
to be written out to a file in the current directory, instead of displaying text
|
||||||
|
|
Loading…
Reference in New Issue