git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cbd3b5
)
python/getopt: -d/--debuglevel saves value in options for scripts
author
Douglas Bagnall
<douglas.bagnall@catalyst.net.nz>
Wed, 12 Apr 2017 00:34:49 +0000
(12:34 +1200)
committer
Douglas Bagnall
<dbagnall@samba.org>
Fri, 23 Jun 2017 00:25:25 +0000
(
02:25
+0200)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
python/samba/getopt.py
patch
|
blob
|
history
diff --git
a/python/samba/getopt.py
b/python/samba/getopt.py
index 4da75ce0266f1c6a47cd98071f2eb5f03f71edf6..9e1fb83167a5944d4a0953559c487f666d0cb02b 100644
(file)
--- 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)