mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
netcmd: correctly pass Samba option class to OptionParser
On OptionGroups it will set option_class and then this gets used by self.add_option Signed-off-by: Rob van der Linde <rob@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
96959b7267
commit
8b57561297
@ -215,7 +215,9 @@ class Command(object):
|
||||
usage=self.synopsis,
|
||||
description=self.full_description,
|
||||
formatter=PlainHelpFormatter(),
|
||||
prog=prog, epilog=epilog)
|
||||
prog=prog,
|
||||
epilog=epilog,
|
||||
option_class=Option)
|
||||
parser.add_options(self.takes_options)
|
||||
optiongroups = {}
|
||||
for name in sorted(self.takes_optiongroups.keys()):
|
||||
|
Loading…
Reference in New Issue
Block a user