alex-rudakov / sphinx-argparse

Sphinx extension that automatically document argparse commands and options
MIT License
49 stars 40 forks source link

Option with action="version" renders as ``-V===SUPPRESS==`` #3

Closed lqc closed 10 years ago

lqc commented 10 years ago

I have a version argument added with following code:

 parser.add_argument('-V', '--version', action='version', version=program_version_message)

It renders as:

-V===SUPPRESS==, --version===SUPPRESS==

I would expect it to be just:

-V, --version
alex-rudakov commented 10 years ago

Fixed the issue. New version released 0.1.4, that includes this fix