@@ -46,6 +46,8 @@ def get_parser():
46
46
from .version import check_latest , is_flagged
47
47
48
48
verstr = 'fmriprep v{}' .format (__version__ )
49
+ currentv = Version (__version__ )
50
+ is_release = not any ((currentv .is_devrelease , currentv .is_prerelease , currentv .is_postrelease ))
49
51
50
52
parser = ArgumentParser (description = 'FMRIPREP: fMRI PREProcessing workflows' ,
51
53
formatter_class = RawTextHelpFormatter )
@@ -140,8 +142,11 @@ def get_parser():
140
142
Non-standard spaces (valid keywords: %s) imply specific orientations and sampling \
141
143
grids. \
142
144
Important to note, the ``res-*`` modifier does not define the resolution used for \
143
- the spatial normalization """ % (', ' .join ('"%s"' % s for s in templates ()),
144
- ', ' .join (NONSTANDARD_REFERENCES )))
145
+ the spatial normalization.
146
+ For further details, please check out \
147
+ https://fmriprep.readthedocs.io/en/%s/spaces.html""" % (
148
+ ', ' .join ('"%s"' % s for s in templates ()), ', ' .join (NONSTANDARD_REFERENCES ),
149
+ currentv .base_version if is_release else 'latest' ))
145
150
146
151
g_conf .add_argument (
147
152
'--output-space' , required = False , action = 'store' , type = str , nargs = '+' ,
@@ -276,9 +281,7 @@ def get_parser():
276
281
g_other .add_argument ('--sloppy' , action = 'store_true' , default = False ,
277
282
help = 'Use low-quality tools for speed - TESTING ONLY' )
278
283
279
- currentv = Version (__version__ )
280
284
latest = check_latest ()
281
-
282
285
if latest is not None and currentv < latest :
283
286
print ("""\
284
287
You are using fMRIPrep-%s, and a newer version of fMRIPrep is available: %s.
0 commit comments