Skip to content

Commit 584144f

Browse files
author
Steven Tilley
committed
switch from --help-bids to --bids help
1 parent 8d42f06 commit 584144f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

heudiconv/cli/run.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818

1919
INIT_MSG = "Running {packname} version {version}".format
2020

21-
BIDS_OPTIONS = [('notop', 'Skip creating of top-level bids files. '
21+
BIDS_OPTIONS = [('help', 'Display this help message'),
22+
('notop', 'Skip creating of top-level bids files. '
2223
'Useful when running in batch mode to prevent '
2324
'possible race conditions.')]
2425

@@ -113,7 +114,7 @@ def help_bids():
113114
def main(argv=None):
114115
parser = get_parser()
115116
args = parser.parse_args(argv)
116-
if args.help_bids:
117+
if 'help' in args.bids:
117118
help_bids()
118119
sys.exit(1)
119120
# exit if nothing to be done
@@ -212,7 +213,7 @@ def get_parser():
212213
parser.add_argument('-b', '--bids', nargs='*',
213214
metavar=('BIDSOPTION1', 'BIDSOPTION2'),
214215
help='flag for output into BIDS structure. '
215-
'Can also take bids specific options. Use --help-bids '
216+
'Can also take bids specific options. Use --bids help '
216217
'for more information.')
217218
parser.add_argument('--overwrite', action='store_true', default=False,
218219
help='flag to allow overwriting existing converted files')
@@ -253,8 +254,6 @@ def get_parser():
253254
help='Additional queue arguments passed as '
254255
'single string of Argument=Value pairs space '
255256
'separated.')
256-
parser.add_argument('--help-bids', action='store_true', dest='help_bids',
257-
help='Display bids specific help.')
258257
return parser
259258

260259

0 commit comments

Comments
 (0)