File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,12 @@ def get_parser():
150
150
help = 'output directory for conversion setup (for '
151
151
'further customization and future reference. This '
152
152
'directory will refer to non-anonymized subject IDs' )
153
+ parser .add_argument ('-l' , '--locator' , default = None ,
154
+ help = 'study path under outdir. If provided, '
155
+ 'it overloads the value provided by the heuristic. '
156
+ 'If --datalad is enabled, every directory within '
157
+ 'locator becomes a super-dataset thus establishing a '
158
+ 'hierarchy. Setting to "unknown" will skip that dataset' )
153
159
parser .add_argument ('-a' , '--conv-outdir' , default = None ,
154
160
help = 'output directory for converted files. By default '
155
161
'this is identical to --outdir. This option is most '
@@ -248,6 +254,8 @@ def process_args(args):
248
254
# Allow for session to be overloaded from command line
249
255
if args .session is not None :
250
256
session = args .session
257
+ if args .locator is not None :
258
+ locator = args .locator
251
259
if not len (files_or_seqinfo ):
252
260
raise ValueError ("nothing to process?" )
253
261
# that is how life is ATM :-/ since we don't do sorting if subj
You can’t perform that action at this time.
0 commit comments