Skip to content

Commit f2de5c6

Browse files
committed
ENH: Change CLI option name
1 parent 7d0a9f1 commit f2de5c6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

fmriprep/cli/run.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ def get_parser():
7878
# g_bids.add_argument('-r', '--run-id', action='store', default='single_run',
7979
# help='select a specific run to be processed')
8080
g_bids.add_argument(
81-
'--bids-filters', action='store', type=Path,
82-
help='the path to a JSON file describing custom BIDS input filter'
83-
' using pybids {<suffix>:{<entity>:<filter>,...},...} '
81+
'--bids-filter-file', action='store', type=Path, metavar='PATH',
82+
help='a JSON file describing custom BIDS input filter using pybids '
83+
'{<suffix>:{<entity>:<filter>,...},...} '
8484
'(https://github.com/bids-standard/pybids/blob/master/bids/layout/config/bids.json)')
8585
g_bids.add_argument('-t', '--task-id', action='store',
8686
help='select a specific task to be processed')
@@ -505,8 +505,7 @@ def build_workflow(opts, retval):
505505
bids_dir = opts.bids_dir.resolve()
506506
output_dir = opts.output_dir.resolve()
507507
work_dir = opts.work_dir.resolve()
508-
bids_filters = json.loads(opts.bids_filters.read_text()) \
509-
if opts.bids_filters else None
508+
bids_filters = json.loads(opts.bids_filter_file.read_text()) if opts.bids_filter_file else None
510509

511510
if opts.clean_workdir:
512511
from niworkflows.utils.misc import clean_directory

0 commit comments

Comments
 (0)