Skip to content

Commit 4d7eb32

Browse files
committed
Added exclusive group to prevent two fs flags not running simultaneously
1 parent 4db49fd commit 4d7eb32

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

petprep/cli/parser.py

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -509,25 +509,39 @@ def _bids_filter(value, parser):
509509
help='Path to FreeSurfer license key file. Get it (for free) by registering'
510510
' at https://surfer.nmr.mgh.harvard.edu/registration.html',
511511
)
512+
# g_fs.add_argument(
513+
# '--fs-subjects-dir',
514+
# metavar='PATH',
515+
# type=Path,
516+
# help='Path to existing FreeSurfer subjects directory to reuse. '
517+
# '(default: OUTPUT_DIR/freesurfer)',
518+
# )
512519
g_fs.add_argument(
520+
'--no-submm-recon',
521+
action='store_false',
522+
dest='hires',
523+
help='Disable sub-millimeter (hires) reconstruction',
524+
)
525+
fs_mutex = g_fs.add_mutually_exclusive_group()
526+
fs_mutex.add_argument(
513527
'--fs-subjects-dir',
514528
metavar='PATH',
515529
type=Path,
516530
help='Path to existing FreeSurfer subjects directory to reuse. '
517531
'(default: OUTPUT_DIR/freesurfer)',
518532
)
519-
g_fs.add_argument(
520-
'--no-submm-recon',
521-
action='store_false',
522-
dest='hires',
523-
help='Disable sub-millimeter (hires) reconstruction',
524-
)
525-
g_fs.add_argument(
533+
fs_mutex.add_argument(
526534
'--fs-no-reconall',
527535
action='store_false',
528536
dest='run_reconall',
529537
help='Disable FreeSurfer surface preprocessing.',
530538
)
539+
# g_fs.add_argument(
540+
# '--fs-no-reconall',
541+
# action='store_false',
542+
# dest='run_reconall',
543+
# help='Disable FreeSurfer surface preprocessing.',
544+
# )
531545
g_fs.add_argument(
532546
'--fs-no-resume',
533547
action='store_true',

0 commit comments

Comments
 (0)