From: Douglas Bagnall Date: Wed, 12 Apr 2017 00:34:49 +0000 (+1200) Subject: python/getopt: -d/--debuglevel saves value in options for scripts X-Git-Tag: tdb-1.3.14~216 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5b123e46161da9b3c1c9220bb79e985855bdf1e;p=thirdparty%2Fsamba.git python/getopt: -d/--debuglevel saves value in options for scripts Signed-off-by: Douglas Bagnall Reviewed-by: Garming Sam --- diff --git a/python/samba/getopt.py b/python/samba/getopt.py index 4da75ce0266..9e1fb83167a 100644 --- a/python/samba/getopt.py +++ b/python/samba/getopt.py @@ -65,6 +65,7 @@ class SambaOptions(optparse.OptionGroup): raise optparse.OptionValueError("invalid %s option value: %s" % (opt_str, arg)) self._lp.set('debug level', str(arg)) + parser.values.debuglevel = int(arg) def _set_realm(self, option, opt_str, arg, parser): self._lp.set('realm', arg)