diff options
author | Harald Welte <laforge@osmocom.org> | 2023-06-09 11:15:09 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2023-06-09 11:50:18 +0200 |
commit | f422eb18861906fbc544371496d38b4c95dde09f (patch) | |
tree | bc3574a4e8f1a78d1c5ff5d953a1265e39a9b614 /pySim-shell.py | |
parent | f9a5ba5e0f107458d7dfd68ce96a1b6c0d6096ea (diff) |
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
Diffstat (limited to 'pySim-shell.py')
-rwxr-xr-x | pySim-shell.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pySim-shell.py b/pySim-shell.py index 3f0818a..c6782d4 100755 --- a/pySim-shell.py +++ b/pySim-shell.py @@ -949,7 +949,7 @@ class Proact(ProactiveHandler): -option_parser = argparse.ArgumentParser(prog='pySim-shell', description='interactive SIM card shell', +option_parser = argparse.ArgumentParser(description='interactive SIM card shell', formatter_class=argparse.ArgumentDefaultsHelpFormatter) argparse_add_reader_args(option_parser) |