def get_option_name(flags):
    """
    Function to get option names from the user defined arguments.

    Parameters
    ----------
    flags       : list
                  List of user defined arguments
    Returns
    -------
    flags       : list
                  List of option names
    """
    for individualFlag in flags:
        if individualFlag.startswith("--"):
            return individualFlag.replace("--", "")
    return flags[0].replace("--", "")