We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c7cc95c + 01b165d commit d387481Copy full SHA for d387481
nipype/scripts/utils.py
@@ -60,9 +60,12 @@ def add_args_options(arg_parser, interface):
60
inputs = interface.input_spec()
61
for name, spec in sorted(interface.inputs.traits(transient=None).items()):
62
desc = "\n".join(interface._get_trait_desc(inputs, name, spec))[len(name) + 2:]
63
+ # Escape any % signs with a %
64
+ desc = desc.replace('%', '%%')
65
args = {}
66
67
if spec.is_trait_type(traits.Bool):
68
+ args["default"] = getattr(inputs, name)
69
args["action"] = 'store_true'
70
71
if hasattr(spec, "mandatory") and spec.mandatory:
0 commit comments