-
Notifications
You must be signed in to change notification settings - Fork 40
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
Missing hyphens #115
Comments
This also happens to me. It appears that in the generated man page the lines start with .B\-\-foo If I manually edit this to add a space after the B and before the first .B \-\-foo |
yep, same here, first hyphen of --option gets lost as well as single hyphen of short form option. leaving manpage rendering unusable. Pretty frustrating as sphinx-argparse appeared to be a promising module for my needs. Found any workaround @lucc except manually editing the generated manpage file? Any other usable results with other tools? I am playing around with sphinxcontrib-autoprogram at the moment - this works a little better but does not have as much additional editing options as sphinx-argparse (like adding additional restructured text before or after certain sections in the generated manpages/html pages.) sorry, maybe this is not the right place to share experience with manpage autogeneration tools but as it's frustrating enough already I don't see another option :-) and I really do hope that taking over maintenance of this repo as discussed in #135 works out in the end and bugs like this get fixed. Is there a PR open for a fix yet? |
I had a look at the code yesterday but noticed that I don't have any idea how sphinx works and how a plugin can integrate with that (it is by no means a small script which you read through and understand the gist of it at a glance 😄 ). I found this line: https://github.com/alex-rudakov/sphinx-argparse/blob/master/sphinxarg/ext.py#L152 but I did not look into running sphinx with a local checkout of this extension. Maybe we just have to add a space in from of |
Hello,
when creating a man page out of an ArgumentParser, the starting hyphen is not rendered.
So the option
--yes
is shown as-yes
in the man page.Similarly, a
-y
is shown asy
.I can reproduce the issue with the following code:
The text was updated successfully, but these errors were encountered: