Skip to content

Commit 63cd64c

Browse files
author
Ulrik Haugen
committed
Substitute %(prog)s in description and epilog
1 parent 458c975 commit 63cd64c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinxarg/parser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def _try_add_parser_attribute(data, parser, attribname):
3737
if not isinstance(attribval, str):
3838
return
3939
if len(attribval) > 0:
40-
data[attribname] = attribval
40+
data[attribname] = attribval % {'prog': data['prog']}
4141

4242

4343
def _format_usage_without_prefix(parser):

0 commit comments

Comments
 (0)