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:
committed by
Douglas Bagnall
parent
62fe118e99
commit
ca7535912b
@@ -31,6 +31,9 @@ from samba.credentials import (
|
||||
import sys
|
||||
|
||||
|
||||
OptionError = optparse.OptionValueError
|
||||
|
||||
|
||||
class SambaOptions(optparse.OptionGroup):
|
||||
"""General Samba-related command line options."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user