def METHOD_NAME(argv):
    # argument parsing exception handling
    q_help = "(Optional) Scalar quantities to calculate from vector fields"
    q_help += " (N: magnitude,"
    q_help += " n: normal component,"
    q_help += " t: tangent component,"
    q_help += " a: angle between vector and surface normal)"
    q_help += " Default: calculate all quantities"
    def allowed_fields(s):
        for ch in s:
            if ch not in "Nnta":
                raise argparse.ArgumentTypeError(q_help)
        return s
    parser = argparse.ArgumentParser(prog="msh2cortex",
                                     description="Interpolates fields from the gray"
                                     " matter volume to a cortical surface located between the gray"
                                     " and white matter surfaces."
                                     " Outputs freesurfer overlay files or gifti files")
    parser.add_argument("-i", '--in', dest='fn_in', required=True,
                        help="Input mesh with simulation results")
    parser.add_argument('-m', "--m2mpath", dest='m2mpath', required=True,
                        help="path to m2m_{subjectID} directory, created in the "
                        "segmentation")
    parser.add_argument('-o', '--out_folder', dest='out_folder', required=True,
                        help="Folder where output files will be saved")
    parser.add_argument('-d', '--depth', dest='depth', required=False, type=float,
                        help="(Optional) Depth where the field is to be interpolated."
                        " 0 means at the gray matter surface, 1 at the white matter"
                        " surface. Default: 0.5. This argument is only used if the"
                        " head mesh was generated with mri2mesh", default=0.5)
    parser.add_argument('-f', '--fsaverage_folder', dest='fsaverage_folder',
                        required=False,
                        help="(Optional) Folder where output files in fsaverage space will"
                        " be saved. If not set, the fields will not be transformed to "
                        " FsAverage",
                        default=None)
    parser.add_argument('--quantities', type=allowed_fields, required=False,
                        help=q_help, default='Nnta')
    parser.add_argument('--open-in-gmsh', action='store_true',
                        help="(Optional) If set, opens a gmsh window with the overlays after"
                        " performing the transformations")
    parser.add_argument('--version', action='version', version=__version__)
    return parser.parse_args(argv)