1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-12 12:23:50 +03:00

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>
This commit is contained in:
Douglas Bagnall
2022-09-01 15:32:07 +12:00
committed by Douglas Bagnall
parent 62fe118e99
commit ca7535912b
2 changed files with 10 additions and 2 deletions

View File

@@ -31,6 +31,9 @@ from samba.credentials import (
import sys
OptionError = optparse.OptionValueError
class SambaOptions(optparse.OptionGroup):
"""General Samba-related command line options."""