alex-rudakov / sphinx-argparse

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

Use builtin sphinx errors, clarify reason argparse fails when function argument is incorrect #11

Closed jamesra closed 10 years ago

jamesra commented 10 years ago

When the :func: argument is incorrect the output does not indicate where the failure is. Here is a sample log:

File "C:\Python27\lib\site-packages\sphinxarg\ext.py", line 199, in run func = getattr(mod, self.options['func']) AttributeError: 'module' object has no attribute 'ProcessArgs'

I have a fix for this I will push soon.

alex-rudakov commented 10 years ago

Merged your pull request and uploaded new version that contains this to pypi. Thanks!