mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
s4-net: Cope with options without arguments.
This commit is contained in:
parent
410527f936
commit
0d92dd1074
@ -79,7 +79,8 @@ class Command(object):
|
||||
kwargs = dict(opts.__dict__)
|
||||
for option_group in parser.option_groups:
|
||||
for option in option_group.option_list:
|
||||
del kwargs[option.dest]
|
||||
if option.dest is not None:
|
||||
del kwargs[option.dest]
|
||||
kwargs.update(optiongroups)
|
||||
min_args = 0
|
||||
max_args = 0
|
||||
|
Loading…
Reference in New Issue
Block a user