@@ -28,6 +28,8 @@ def _build_parser():
28
28
# parser attribute name: (replacement flag, version slated to be removed in)
29
29
'bold2t1w_init' : ('--bold2anat-init' , '24.2.0' ),
30
30
'bold2t1w_dof' : ('--bold2anat-dof' , '24.2.0' ),
31
+ 'force_reconall' : ('--surface-recon-method freesurfer' , '24.2.0' ),
32
+ 'fs_no_reconall' : ('--surface-recon-method none' , '24.2.0' ),
31
33
}
32
34
33
35
class DeprecatedAction (Action ):
@@ -619,9 +621,9 @@ def _slice_time_ref(value, parser):
619
621
)
620
622
g_surfs_xor .add_argument (
621
623
'--fs-no-reconall' ,
622
- action = 'store_false' ,
624
+ action = DeprecatedAction ,
623
625
dest = 'run_reconall' ,
624
- help = 'disable FreeSurfer surface preprocessing .' ,
626
+ help = 'Deprecated - use `-- surface-recon-method none` instead .' ,
625
627
)
626
628
627
629
g_other = parser .add_argument_group ('Other options' )
@@ -750,14 +752,14 @@ def _slice_time_ref(value, parser):
750
752
g_baby .add_argument (
751
753
'--force-reconall' ,
752
754
default = False ,
753
- action = 'store_true' ,
754
- help = 'Force traditional FreeSurfer surface reconstruction .' ,
755
+ action = DeprecatedAction ,
756
+ help = 'Deprecated - use `-- surface-recon-method freesurfer` instead .' ,
755
757
)
756
758
g_baby .add_argument (
757
759
'--surface-recon-method' ,
758
- choices = ('infantfs' , 'freesurfer' , 'mcribs' , 'auto ' ),
760
+ choices = ('auto' , ' infantfs' , 'freesurfer' , 'mcribs' , 'none ' ),
759
761
default = 'auto' ,
760
- help = 'Method to use for surface reconstruction' ,
762
+ help = 'Method to use for surface reconstruction. ' ,
761
763
)
762
764
g_baby .add_argument (
763
765
'--reference-anat' ,
0 commit comments