You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argument is defined with hyphen in argparse, e.g. --timeout-ready. In Python, this argument is auto converted to timeout_ready. So the user often expects to find the result by searching either: with hyphen or with underscore.
However, right now only the timeout-ready query gives the full result.
I guess some kind of alias needs to be added for hyphen and underscore, but at where? Should it be implemented in argparse, or sphinx-argparse, or sphinx, or doc theme level?
As mentioned in sphinx-doc/sphinx#7648 (comment), I think the actual report here is that the value of action.dest (which just happens to default to swapping - for _) is not present anywhere in the generated docs.
Perhaps that's deliberate though, since dest is an implementation detail, not a property of the interface being documented.
Argument is defined with hyphen in
argparse
, e.g.--timeout-ready
. In Python, this argument is auto converted totimeout_ready
. So the user often expects to find the result by searching either: with hyphen or with underscore.However, right now only the
timeout-ready
query gives the full result.I guess some kind of alias needs to be added for hyphen and underscore, but at where? Should it be implemented in argparse, or sphinx-argparse, or sphinx, or doc theme level?
Original issue link: jina-ai/serve#402 (comment)
The text was updated successfully, but these errors were encountered: