Skip to content

Commit 7effb58

Browse files
authored
Merge pull request #98 from baej3/main
FIX: Prevent users from using both fs flags at the same time
2 parents f1990ce + de590c1 commit 7effb58

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

petprep/cli/parser.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -496,19 +496,20 @@ def _bids_filter(value, parser):
496496
' at https://surfer.nmr.mgh.harvard.edu/registration.html',
497497
)
498498
g_fs.add_argument(
499+
'--no-submm-recon',
500+
action='store_false',
501+
dest='hires',
502+
help='Disable sub-millimeter (hires) reconstruction',
503+
)
504+
fs_mutex = g_fs.add_mutually_exclusive_group()
505+
fs_mutex.add_argument(
499506
'--fs-subjects-dir',
500507
metavar='PATH',
501508
type=Path,
502509
help='Path to existing FreeSurfer subjects directory to reuse. '
503510
'(default: OUTPUT_DIR/freesurfer)',
504511
)
505-
g_fs.add_argument(
506-
'--no-submm-recon',
507-
action='store_false',
508-
dest='hires',
509-
help='Disable sub-millimeter (hires) reconstruction',
510-
)
511-
g_fs.add_argument(
512+
fs_mutex.add_argument(
512513
'--fs-no-reconall',
513514
action='store_false',
514515
dest='run_reconall',

0 commit comments

Comments
 (0)