Closed lordmauve closed 7 years ago
Screenshot demonstrating this issue:
As you can see in the usage, --packdir
is a required argument.
Could you install the develop branch and check if this is fixed there?
I believe this is related to Python issue #9694.
@dpryan79 I can't easily install from Github at work.
Besides I believe this code in the develop branch is the culprit: https://github.com/ribozz/sphinx-argparse/blob/develop/sphinxarg/parser.py#L159
I suggest calling the default argument groups "Named Arguments" and "Positional Arguments" - at least, that's how I'm going to work around this for the time being.
Seems like a reasonable path forward, that's what I'll implement then for the next release.
This has now been changed for the 0.2.0 release, due out Friday.
Version: sphinx-argparse==0.1.17
In the generated output I see required named arguments, eg
being grouped under the heading "optional arguments". This is likely to be very confusing for my application's users. The usage text is correct (ie. omits square brackets).