Closed EdwardBetts closed 1 year ago
Thank you for the well-formated issue!
Seems like you have some old version of argparse-manpage, can you please try the v4 with the --prog
option?
The --project-name
is name of the project (e.g. GNU coreutils
), while the --prog
is the name of the program/script (e.g. ls, cp, timeout, or sleep).
Sorry, I should've checked for a new version. I'm using 1.2.2, which is the latest version in Debian unstable.
I'll try and get the version 4 into Debian unstable.
You're right this is fixed in newer versions.
Minimal example:
Here is parser.py:
The parser has a "description" parameter, but no "prog" parameter.
This is what happens when I run argparse-manpage.
In the man page output the name should be "foobar" as specified on the command line, not "argparse-manpage".