This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kszawala
Recipients kszawala
Date 2008-12-12.14:15:17
SpamBayes Score 6.894934e-06
Marked as misclassified No
Message-id <1229091317.99.0.0373264800508.issue4641@psf.upfronthosting.co.za>
In-reply-to
Content
I am using optparse for command-line parameters parsing. To follow 
common naming convention I defined -d (minus followed by a single 
character option) and --debug (double minus followed by a word).

It looks like optparse doesn't complain when -debug (single minus) is 
specified and morover it doesn't recognize it as --debug.

I am using Python 2.5.2. Problem was observed on Linux but also occurs 
on Windows.
History
Date User Action Args
2008-12-12 14:15:18kszawalasetrecipients: + kszawala
2008-12-12 14:15:17kszawalasetmessageid: <1229091317.99.0.0373264800508.issue4641@psf.upfronthosting.co.za>
2008-12-12 14:15:17kszawalalinkissue4641 messages
2008-12-12 14:15:17kszawalacreate