def get_matrix_or_template_parameters(cli_args):
    """
    cifti_conn_matrix and cifti_conn_template both have the same required
    parameters, with only a few exceptions. This function returns a list of
    all parameters required by both scripts.
    :param cli_args: Full argparse namespace containing all CLI args, including
    all necessary parameters for cifti_conn_matrix and cifti_conn_template.
    :return: A list of all parameters required by matrix and template scripts.
    """
    return([
        cli_args.mre_dir,
        cli_args.wb_command,
        cli_args.series_file,
        cli_args.time_series,
        cli_args.motion,
        cli_args.fd,
        cli_args.tr,
        cli_args.minutes,
        cli_args.smoothing_kernel,
        cli_args.left,
        cli_args.right,
        cli_args.beta8,
        cli_args.remove_outliers,
        cli_args.mask,
        cli_args.make_conn_conc,
        cli_args.output,
        cli_args.dtseries
    ])