Commit 2997e858 authored by Andrey Golovizin's avatar Andrey Golovizin

Fix adding cmdline option groups

parent ac2e5506
......@@ -194,7 +194,8 @@ class CommandLine(object):
if option_group is None:
container = opt_parser
else:
container = opt_parser.add_option_group(option_group)
container = optparse.OptionGroup(opt_parser, option_group)
opt_parser.add_option_group(container)
for option in option_list:
container.add_option(option)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment