def arg_to_attr(arg_name):
    """
    Format an argument like an object attribute

    :param arg: the list of arguments name to parse
    :return: the parsed attributes list
    """
    return [arg.replace('--', '').replace('-', '_') for arg in arg_name]