]> git.ipfire.org Git - thirdparty/samba.git/commit
samba-tool: avoid traceback for options errors
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 1 Sep 2022 03:32:07 +0000 (15:32 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Tue, 6 Sep 2022 21:12:36 +0000 (21:12 +0000)
commitca7535912b1d0564654a612deed4f002a2382da8
tree1afa2fa8822a3031561b4a7569004ec538b83750
parent62fe118e99e6f0f2c9c09101ec0f79283a342171
samba-tool: avoid traceback for options errors

What option? None yet, but see the next two commits.

We use a local reference to optparse.OptionValueError, to save typing
and make the eventual switch to argparse easier.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/getopt.py
python/samba/netcmd/__init__.py