def __init__(self, *groups, **kwargs):
    ArgumentParser.__init__(self, **kwargs)
    for (cli, kwargs) in self.arguments:
        self.add_argument(*cli, **kwargs)
    for name in groups:
        group = self.add_argument_group('{} arguments'.format(name))
        arguments = ARGUMENT_GROUPS[name]
        for (cli, kwargs) in arguments:
            group.add_argument(*cli, **kwargs)
def __init__(self, *groups, **kwargs):
    ArgumentParser.__init__(self, **kwargs)
    for (cli, kwargs) in self.arguments:
        self.add_argument(*cli, **kwargs)
    for name in groups:
        group = self.add_argument_group('{} arguments'.format(name))
        arguments = ARGUMENT_GROUPS[name]
        for (cli, kwargs) in arguments:
            group.add_argument(*cli, **kwargs)