[New-bugs-announce] [issue9044] [optparse] confusion over an option and its value without any space in between
report at bugs.python.org
Mon Jun 21 18:05:31 CEST 2010
New submission from Krzysztof Szawala <kszawala at slb.com>:
Currently optparse library supports the following option definitions:
Having said that let's consider the following option definition:
Based on the above syntax the following statement will be correct:
and will be parsed into -e xclusive.
The fact that no caracter is required in between the option itself and its value leads to confusion.
My suggestion is to restrict the syntax to the following:
components: Library (Lib)
title: [optparse] confusion over an option and its value without any space in between
type: feature request
versions: Python 2.6
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce