@@ -78,9 +78,9 @@ def get_parser():
78
78
# g_bids.add_argument('-r', '--run-id', action='store', default='single_run',
79
79
# help='select a specific run to be processed')
80
80
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>,...},...} '
84
84
'(https://github.com/bids-standard/pybids/blob/master/bids/layout/config/bids.json)' )
85
85
g_bids .add_argument ('-t' , '--task-id' , action = 'store' ,
86
86
help = 'select a specific task to be processed' )
@@ -505,8 +505,7 @@ def build_workflow(opts, retval):
505
505
bids_dir = opts .bids_dir .resolve ()
506
506
output_dir = opts .output_dir .resolve ()
507
507
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
510
509
511
510
if opts .clean_workdir :
512
511
from niworkflows .utils .misc import clean_directory
0 commit comments