alex-rudakov / sphinx-argparse

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

%(default) not supported in help message #27

Closed fallen closed 8 years ago

fallen commented 9 years ago

It seems sphinx-argparse does not support expanding the %(default) contained in help string of the add_argument(). sphinx-argparse will literaly print "%(default)" instead of replacing it with the default argument of the add_argument().

Please, see https://docs.python.org/3/library/argparse.html#help

Thanks!

tgarc commented 8 years ago

Yes this is also an issue for me as I always include the %(default) variable in help strings.

dpryan79 commented 8 years ago

I've now implemented this in the develop branch. Please give it a try and let me know if it has trouble with any of your use cases.