Skip to content

Commit d387481

Browse files
authored
Merge pull request #1903 from satra/fix/clirun
fix: store undefined by default so that xor checks don't trip
2 parents c7cc95c + 01b165d commit d387481

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nipype/scripts/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,12 @@ def add_args_options(arg_parser, interface):
6060
inputs = interface.input_spec()
6161
for name, spec in sorted(interface.inputs.traits(transient=None).items()):
6262
desc = "\n".join(interface._get_trait_desc(inputs, name, spec))[len(name) + 2:]
63+
# Escape any % signs with a %
64+
desc = desc.replace('%', '%%')
6365
args = {}
6466

6567
if spec.is_trait_type(traits.Bool):
68+
args["default"] = getattr(inputs, name)
6669
args["action"] = 'store_true'
6770

6871
if hasattr(spec, "mandatory") and spec.mandatory:

0 commit comments

Comments
 (0)