Skip to content

Commit 4f76c7a

Browse files
committed
Add drop missing as option to CLI
1 parent d5f61bf commit 4f76c7a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

neuroscout_cli/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
neuroscout
33
44
Usage:
5-
neuroscout run [-ui <dir> -s <k> -w <dir> -c <n> -n <nv>] <outdir> <bundle_id>...
5+
neuroscout run [-ui <dir> -s <k> -w <dir> -c <n> -n <nv> -d] <outdir> <bundle_id>...
66
neuroscout install [-ui <dir>] <bundle_id>...
77
neuroscout ls <bundle_id>
88
neuroscout -h | --help
@@ -18,6 +18,7 @@
1818
-u, --unlock Unlock datalad dataset
1919
-n, --neurovault <nv> Upload mode (disable, force, or enable)
2020
[default: enable]
21+
-d, --drop-missing Drop missing contrast
2122
2223
Commands:
2324
run Runs a first level, group level, or full analysis.

neuroscout_cli/commands/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def run(self):
4747
if name.startswith('--'):
4848
if value is True:
4949
fitlins_args.append('{}'.format(name))
50-
if value is not None and value is not False:
50+
elif value is not None and value is not False:
5151
fitlins_args.append('{}={}'.format(name, value))
5252
else:
5353
if value is not False and value is not None:

0 commit comments

Comments
 (0)