Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

%(default) not supported in help message #27

Closed
fallen opened this issue Mar 24, 2015 · 2 comments
Closed

%(default) not supported in help message #27

fallen opened this issue Mar 24, 2015 · 2 comments

Comments

@fallen
Copy link

fallen commented Mar 24, 2015

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!

asmeurer added a commit to drdoctr/doctr that referenced this issue Aug 9, 2016
We won't actually use this, because it doesn't replace %(default)s in the help
strings (alex-rudakov/sphinx-argparse#27).
@tgarc
Copy link

tgarc commented Aug 25, 2016

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

@dpryan79
Copy link
Collaborator

dpryan79 commented Oct 6, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants