Add ".py" suffix to sphinx-argparse generated docs

This is important to produce the right command syntax when generating
command line reference in the user manual.  However, we shouldn't add
this kludge to the individual programs, but only to the documentation
using the :prog: syntax.

Change-Id: I2ec7ab00c63d5d386f187e54755c71ffc2dce429
This commit is contained in:
Harald Welte
2023-06-09 11:15:09 +02:00
parent f9a5ba5e0f
commit f422eb1886
4 changed files with 4 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ pySim-shell has a variety of command line arguments to control
.. argparse::
:module: pySim-shell
:func: option_parser
:prog: pySim-shell.py
Usage Examples
--------------