'Register the module arguments.
Register arguments to be added to the argparse parser.
Args:
arguments (list of dict): List of dictionaries in the form
`[{ \'name\' : \'arg1\', \'opt\' : \'\', .. }, {\'name\' : \'arg2\', \'opt\' : \'\', .. }]`
to be passed to the `ArgumentParser.add_argument()` method.'

def register_arguments(self, arguments=[]):

    try:
        for arg_opts in arguments:
            if (arg_opts.get('choices') == []):
                log.warn((messages.module.error_choices_s_s_empty % (self.name, arg_name)))
            self.argparser.add_argument(arg_opts['name'], **dict(((k, v) for (k, v) in arg_opts.items() if (k != 'name'))))
    except Exception as e:
        raise DevException((messages.module.error_setting_arguments_s % e))
