Skip to content

Commit

Permalink
Substitute %(prog)s in description and epilog
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrik Haugen committed Jan 23, 2021
1 parent 99e830e commit 595de4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinxarg/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _try_add_parser_attribute(data, parser, attribname):
if not isinstance(attribval, str):
return
if len(attribval) > 0:
data[attribname] = attribval
data[attribname] = attribval % {'prog': data['prog']}


def _format_usage_without_prefix(parser):
Expand Down

0 comments on commit 595de4b

Please sign in to comment.