You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the :prog: keyword for the sphinx_argparse_cli directive but it appears that it only affects the first display of the command name. The main command name for the subcommands is shown as sphinx-build.
The result with MANWIDTH=80 PAGER=cat man _build/man/prog.1:
PROG(1) bug-example PROG(1)
NAME
prog - bug example
SYNOPSIS
bug-example [-h] {foo} ...
bug-example options
• -h, --help - show this help message and exit
sphinx-build foo
sphinx-build foo [-h]
sphinx-build foo options
• -h, --help - show this help message and exit
COPYRIGHT
2022, me
Dec 06, 2022 PROG(1)
BUG-EXAMPLE-1(1) bug-example BUG-EXAMPLE-1(1)
NAME
bug-example-1 - bug example
SYNOPSIS
bug-example-2 [-h] {foo} ...
bug-example-2 options
• -h, --help - show this help message and exit
bug-example-3 foo
bug-example-3 foo [-h]
bug-example-3 foo options
• -h, --help - show this help message and exit
COPYRIGHT
2022, me
Apr 06, 2023 BUG-EXAMPLE-1(1)
bug-example-1 is set in conf.py as the name of the man page (it is also the file name of the man page)
bug-example-2 is set in the :prog: keyword for the sphinx_argparse_cli directive in man.rst
bug-example-3 is set in the constructor of the argparse.ArgumentParser
I am using the
:prog:
keyword for thesphinx_argparse_cli
directive but it appears that it only affects the first display of the command name. The main command name for the subcommands is shown assphinx-build
.My rst directive
My build command:
make man
The result with
MANWIDTH=80 PAGER=cat man _build/man/prog.1
:The full example repository to reproduce this: https://github.com/lucc/sphinx-example
The text was updated successfully, but these errors were encountered: