Skip to content

Commit fcea25a

Browse files
authored
Merge pull request #488 from BitForge95/fix-pad-option-help
Improve explanation of pad option in CLI help
2 parents 1c87dd0 + 7283281 commit fcea25a

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

phys2bids/cli/run.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""Parser for phys2bids."""
33

4-
54
import argparse
65

76
from phys2bids import __version__
@@ -36,15 +35,15 @@ def _get_parser():
3635
"--info",
3736
dest="info",
3837
action="store_true",
39-
help="Only output info about the file, don't process. " "Default is to process.",
38+
help="Only output info about the file, don't process. Default is to process.",
4039
default=False,
4140
)
4241
optional.add_argument(
4342
"-indir",
4443
"--input-dir",
4544
dest="indir",
4645
type=str,
47-
help="Folder containing input. " "Default is current folder.",
46+
help="Folder containing input. Default is current folder.",
4847
default=".",
4948
)
5049
optional.add_argument(
@@ -77,15 +76,15 @@ def _get_parser():
7776
"--subject",
7877
dest="sub",
7978
type=str,
80-
help='Specify alongside "-heur". Code of ' "subject to process.",
79+
help='Specify alongside "-heur". Code of subject to process.',
8180
default=None,
8281
)
8382
optional.add_argument(
8483
"-ses",
8584
"--session",
8685
dest="ses",
8786
type=str,
88-
help='Specify alongside "-heur". Code of ' "session to process.",
87+
help='Specify alongside "-heur". Code of session to process.',
8988
default=None,
9089
)
9190
optional.add_argument(
@@ -151,9 +150,9 @@ def _get_parser():
151150
"--padding",
152151
dest="pad",
153152
type=float,
154-
help="Padding in seconds used around a single run "
155-
"when separating multi-run session files. "
156-
"Default is 9 seconds.",
153+
help="Amount of seconds of recording that is saved around the real take, "
154+
"both before and after it. At the moment it should be less than the "
155+
"time between two takes. Default is 9 seconds.",
157156
default=9,
158157
)
159158
optional.add_argument(
@@ -170,7 +169,7 @@ def _get_parser():
170169
"--participant-yml",
171170
dest="yml",
172171
type=str,
173-
help="full path to file with info needed to generate " "participant.tsv file ",
172+
help="full path to file with info needed to generate participant.tsv file ",
174173
default="",
175174
)
176175
optional.add_argument(

0 commit comments

Comments
 (0)