Skip to content

Commit 01b165d

Browse files
committed
fix: help description containing % symbols
1 parent 4d64f99 commit 01b165d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nipype/scripts/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ 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):

0 commit comments

Comments
 (0)