[ python-Bugs-1014230 ] optparse: parser.remove_option("-h") inconsistency

SourceForge.net noreply at sourceforge.net
Sat Jul 29 12:30:43 CEST 2006


Bugs item #1014230, was opened at 2004-08-23 10:04
Message generated for change (Settings changed) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1014230&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: strop (strop)
>Assigned to: Greg Ward (gward)
Summary: optparse: parser.remove_option("-h") inconsistency

Initial Comment:
remove_option("-h") method of OptionParser has a strange 
behaviour : it can't be removed from 2 different OptionParser 
objects. 
It may be due to the fact that the help option seems to be a 
unique object. 
Even if this can be "solved" by addind add_help_option=0 to 
OptionParser constructor parameters, it seems to be an 
inconsistency wrt remove_option method 
 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1014230&group_id=5470


More information about the Python-bugs-list mailing list