pySim-shell: Migrate from optparse to argparse for the main()

We're using argparse internally for all shell commands, and can
use that to auto-generate command reference in the manual.

Let's switch to argparse for the main program, too - and generate
the related reference in the manual.

Change-Id: I77c946dbeb9f746fe3d8051173e59462dc2fb5e2
This commit is contained in:
Harald Welte
2021-04-11 11:56:44 +02:00
parent e4759fd5cd
commit f2e761ce20
2 changed files with 37 additions and 54 deletions

View File

@@ -23,6 +23,20 @@ By means of using the python ``cmd2`` module, various useful features improve us
* tab completion of commands and SELECT-able files/directories
* interactive help for all commands
Running pySim-shell
-------------------
pySim-shell has a variety of command line arguments to control
* which transport to use (how to use a reader to talk to the SIM card)
* whether to automatically verify an ADM pin (and in which format)
* whether to execute a start-up script
.. argparse::
:module: pySim-shell
:func: option_parser
cmd2 basics
-----------