Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

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

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Nov 18, 2009, 5:12 PM

Post #1 of 3 (150 views)
Permalink
[issue6454] Add "example" keyword argument to optparse constructor

Changes by Raymond Hettinger <rhettinger [at] users>:


----------
assignee: rhettinger -> gward
nosy: +gward

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6454>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 19, 2009, 6:21 AM

Post #2 of 3 (130 views)
Permalink
[issue6454] Add "example" keyword argument to optparse constructor [In reply to]

Marcin Kasperski <Marcin.Kasperski [at] mekk> 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>
<http://bugs.python.org/issue6454>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 22, 2009, 7:30 AM

Post #3 of 3 (114 views)
Permalink
[issue6454] Add "example" keyword argument to optparse constructor [In reply to]

Greg Ward <greg [at] gerg> added the comment:

> 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

Agreed. I have also been bitten by optparse munging paragraphs together
in the description, and it's annoying. I *think* we could get away with
two simple rules:

* blank lines separate paragraphs
* indented lines don't get wrapped

Obviously no one wants to reinvent reStructuredText, but I think that
should do the trick.

If that works, I think the suggested 'examples' arg becomes unnecessary.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6454>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.