def read_add_mos_args(add_mos_result, get_opt_args=False):
    """
    :param add_mos_result: result from add_mos
    :param get_opt_args: if there is opt_args_function, an array of opt_args will be return as well
    :return: array of key_args and opt_args
    """
    key_args = []
    opt_args = []
    for i in add_mos_result:
        key_args.append(i['key_args'])
        if get_opt_args:
            opt_args.append(i['opt_args'])
    if get_opt_args:
        return key_args, opt_args
    else:
        return key_args