Gwendal LE BIHAN added the comment:
I confirm. Fixed in Python 2.7.
I didn't have Python 2.7 installed since it's not in the Ubuntu repository yet.
--
___
Python tracker
<http://bugs.python.
Changes by Gwendal LE BIHAN :
--
title: bad exception handling when giving no value to an option requiring one
-> optparse: bad exception handling when giving no value to an option requiring
one
___
Python tracker
<http://bugs.python.org/iss
New submission from Gwendal LE BIHAN :
Having created the parser this way:
optparser=OptionParser()
optparser.add_option("--share-dir",dest="share_dir",default="/usr/share")
options,args=optparser.parse_args()
And calling the program this way:
appname --