|
18 | 18 |
|
19 | 19 | INIT_MSG = "Running {packname} version {version}".format
|
20 | 20 |
|
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. ' |
22 | 23 | 'Useful when running in batch mode to prevent '
|
23 | 24 | 'possible race conditions.')]
|
24 | 25 |
|
@@ -113,7 +114,7 @@ def help_bids():
|
113 | 114 | def main(argv=None):
|
114 | 115 | parser = get_parser()
|
115 | 116 | args = parser.parse_args(argv)
|
116 |
| - if args.help_bids: |
| 117 | + if 'help' in args.bids: |
117 | 118 | help_bids()
|
118 | 119 | sys.exit(1)
|
119 | 120 | # exit if nothing to be done
|
@@ -212,7 +213,7 @@ def get_parser():
|
212 | 213 | parser.add_argument('-b', '--bids', nargs='*',
|
213 | 214 | metavar=('BIDSOPTION1', 'BIDSOPTION2'),
|
214 | 215 | 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 ' |
216 | 217 | 'for more information.')
|
217 | 218 | parser.add_argument('--overwrite', action='store_true', default=False,
|
218 | 219 | help='flag to allow overwriting existing converted files')
|
@@ -253,8 +254,6 @@ def get_parser():
|
253 | 254 | help='Additional queue arguments passed as '
|
254 | 255 | 'single string of Argument=Value pairs space '
|
255 | 256 | 'separated.')
|
256 |
| - parser.add_argument('--help-bids', action='store_true', dest='help_bids', |
257 |
| - help='Display bids specific help.') |
258 | 257 | return parser
|
259 | 258 |
|
260 | 259 |
|
|
0 commit comments