[New-bugs-announce] [issue4278] optparse quirks

Keith Briggs report at bugs.python.org
Fri Nov 7 14:13:55 CET 2008


New submission from Keith Briggs <kbriggs at users.sourceforge.net>:

I got the message:

optparse.OptionError: invalid long option string '-T0': must start with
--, followed by non-dash

This is bad - the real error was that I gave a short option which did
not have a single letter.

Also, it seems that add_option('--height-of-plot','-h') is not allowed,
because -h can only go with --help.   How do I override this?

Keith

----------
components: Extension Modules
messages: 75602
nosy: kbriggs
severity: normal
status: open
title: optparse quirks
type: behavior
versions: Python 2.5.3

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


More information about the New-bugs-announce mailing list