[issue6454] Add "example" keyword argument to optparse constructor

Marcin Kasperski report at bugs.python.org
Thu Nov 19 15:21:08 CET 2009


Marcin Kasperski <Marcin.Kasperski at mekk.waw.pl> added the comment:

I found this bug while looking for suggestions how to add examples to
the optparse help call, but I feel there is a better and more general
solution - just provide some minimal formatting for description: treat
empty line as paragraph separator. Then I would be able to add example
or anything else to the description formatting it as necessary

----------
nosy: +Mekk

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6454>
_______________________________________


More information about the Python-bugs-list mailing list