1
0
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:
Jelmer Vernooij 2010-04-09 02:37:20 +02:00
parent 410527f936
commit 0d92dd1074

View File

@ -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