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?
Describe your problem
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 thetimeout-ready
query gives the full result.What is your guess?
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 post: https://github.com/jina-ai/jina/issues/395#issuecomment-625773716 sphinx-argparse: https://github.com/alex-rudakov/sphinx-argparse/issues/124 sphinx: https://github.com/sphinx-doc/sphinx/issues/7648#issue-615227543
Environment
Screenshots