]> sigrok.org Git - sigrok-util.git/commit
sigrok-fwextract-kingst-la2016: use argparse(3) for commandline options
authorGerhard Sittig <redacted>
Sat, 19 Feb 2022 11:43:36 +0000 (12:43 +0100)
committerGerhard Sittig <redacted>
Sat, 19 Feb 2022 12:09:16 +0000 (13:09 +0100)
commit76358ac298251ac8bc9cefdf633e95cccbd1c40c
tree9fd8900de75ceb6ba6db8b5a040109c1cddbeacc
parentfa07228b7fd6a2e0bf910f9f978c0875354cd50a
sigrok-fwextract-kingst-la2016: use argparse(3) for commandline options

Neither open code the access to the sys.argv[] detail nor indices of
positional arguments. Use the argparse(3) Python module instead, which
transparently handles presence checks and provides a help text.
firmware/kingst-la/sigrok-fwextract-kingst-la2016