Skip to content

Commit 0ebc7e3

Browse files
authored
DOC: Add link to documentation in help of --output-spaces argument
Closes #1693
1 parent 4516201 commit 0ebc7e3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

fmriprep/cli/run.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def get_parser():
4646
from .version import check_latest, is_flagged
4747

4848
verstr = 'fmriprep v{}'.format(__version__)
49+
currentv = Version(__version__)
4950

5051
parser = ArgumentParser(description='FMRIPREP: fMRI PREProcessing workflows',
5152
formatter_class=RawTextHelpFormatter)
@@ -140,8 +141,11 @@ def get_parser():
140141
Non-standard spaces (valid keywords: %s) imply specific orientations and sampling \
141142
grids. \
142143
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)))
144+
the spatial normalization.
145+
For further details, please check out \
146+
https://fmriprep.readthedocs.io/en/%s/spaces.html""" % (
147+
', '.join('"%s"' % s for s in templates()), ', '.join(NONSTANDARD_REFERENCES),
148+
currentv.base_version))
145149

146150
g_conf.add_argument(
147151
'--output-space', required=False, action='store', type=str, nargs='+',
@@ -276,9 +280,7 @@ def get_parser():
276280
g_other.add_argument('--sloppy', action='store_true', default=False,
277281
help='Use low-quality tools for speed - TESTING ONLY')
278282

279-
currentv = Version(__version__)
280283
latest = check_latest()
281-
282284
if latest is not None and currentv < latest:
283285
print("""\
284286
You are using fMRIPrep-%s, and a newer version of fMRIPrep is available: %s.

0 commit comments

Comments
 (0)