-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting prog
and pyfile
in options gives an error
#79
Comments
Thank you for the report! |
praiskup
added a commit
that referenced
this issue
Sep 1, 2023
praiskup
added a commit
that referenced
this issue
Sep 1, 2023
praiskup
added a commit
that referenced
this issue
Sep 1, 2023
Thanks for the fix! |
clrpackages
pushed a commit
to clearlinux-pkgs/pypi-argparse_manpage
that referenced
this issue
Sep 7, 2023
…to version 4.4 News in v4.4 * The `prog=` specifier (in setup.py/setup.cfg/pyproject.toml) is now better handled so it doesn't conflict with ArgumentParser(prog=..). Fixes praiskup/argparse-manpage#79
netbsd-srcmastr
pushed a commit
to NetBSD/pkgsrc
that referenced
this issue
Oct 6, 2023
News in v4.5 * We newly provide `build_manpages.build_py` and `build_manpages.install` command classes that are re-usable from `pyproject.toml`. No need to provide `setup.py` because of `argparse-manpage`. News in v4.4 * The `prog=` specifier (in setup.py/setup.cfg/pyproject.toml) is now better handled so it doesn't conflict with ArgumentParser(prog=..). Fixes praiskup/argparse-manpage#79
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It turned out I was doing the wrong thing (I should have been setting
module
, notpyfile
), but…In the examples, there are these lines:
However, if with argparse-manpage 4 I set both
prog
andpyfile
, then I get this error:This appears to be because of the following code:
This is triggered when
oname
isprog
, because previously the following code was run:Setting
prog
beforepyfile
does not cause an error, but does causepyfile
's value to overwriteprog
's. Neither seems to be what is really wanted!The text was updated successfully, but these errors were encountered: