'Parse the available options.'

def parse_options(self, prog_name, arguments, command=None):

    self.parser = self.create_parser(prog_name, command)
    options = vars(self.parser.parse_args(arguments))
    return (options, (options.pop(self.args_name, None) or []))
