alex-rudakov / sphinx-argparse

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

Added 'passparser' option for inplace argument additions. #26

Closed djhoese closed 9 years ago

djhoese commented 9 years ago

I have a couple cases where functions are used to add command line arguments to a parser object passed as the first argument to the function instead of creating the parser inside the function. These functions don't necessarily return the original parser back so creating a default parser isn't really possible. So I figured I'd add this fairly simple change. Thoughts?

alex-rudakov commented 9 years ago

Nice thing to have. I also have an example of this usecase. I used wrapper function in my code as a workaround. This is way nicer solution.

alex-rudakov commented 9 years ago

Fix is included to 0.1.14 version