class_docstr: This program registers a surface to an average surface template.
  
  Examples
  ========
  >>> from nipype.interfaces.freesurfer import Register
  >>> register = Register()
  >>> register.inputs.in_surf = 'lh.pial'
  >>> register.inputs.in_smoothwm = 'lh.pial'
  >>> register.inputs.in_sulc = 'lh.pial'
  >>> register.inputs.target = 'aseg.mgz'
  >>> register.inputs.out_file = 'lh.pial.reg'
  >>> register.inputs.curv = True
  >>> register.cmdline
  'mris_register -curv lh.pial aseg.mgz lh.pial.reg'
class_docstr_tok: ["This","program","registers","a","surface","to","an","average","surface","template",".","Examples","========",">",">",">","from","nipype.interfaces.freesurfer","import","Register",">",">",">","register","=","Register","(",")",">",">",">","register.inputs.in_surf","=","'lh.pial'",">",">",">","register.inputs.in_smoothwm","=","'lh.pial'",">",">",">","register.inputs.in_sulc","=","'lh.pial'",">",">",">","register.inputs.target","=","'aseg.mgz'",">",">",">","register.inputs.out_file","=","'lh.pial.reg'",">",">",">","register.inputs.curv","=","True",">",">",">","register.cmdline","'mris_register","-curv","lh.pial","aseg.mgz","lh.pial.reg","'"]
code: def _format_arg(self, opt, spec, val):
      if opt == "curv":
          return spec.argstr
      return super()._format_arg(opt, spec, val)
  
imports: import os
  import os.path
  from ...None import logging
  from ...utils.filemanip import split_filename, copyfile
  from .base import FSCommand, FSTraitedSpec, FSScriptCommand, FSScriptOutputSpec, FSCommandOpenMP, FSTraitedSpecOpenMP
  from ..base import isdefined, TraitedSpec, File, traits, Directory
label_desc: Use image node_id 1 for calling the Register obj's underlying member method code with example usage: obj._format_arg(opt, spec, val) and returns: super, spec