[New-bugs-announce] [issue27619] getopt should strip whitespace from long arguments
Steven D'Aprano
report at bugs.python.org
Mon Jul 25 20:50:17 EDT 2016
New submission from Steven D'Aprano:
As reported here:
https://mail.python.org/pipermail/python-list/2016-July/711333.html
there's a possible annoyance with getopt when you accidentally leave whitespace on a long option. On my Centos system, getopt ignores leading and trailing whitespace on long options.
[steve at ando ~]$ getopt -o "" -l " spam , eggs " -- --spam --eggs arg
--spam --eggs -- 'arg'
Python's getopt should do the same. (Patch attached.)
----------
components: Library (Lib)
files: getopt.patch
keywords: patch
messages: 271310
nosy: steven.daprano
priority: normal
severity: normal
status: open
title: getopt should strip whitespace from long arguments
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file43884/getopt.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27619>
_______________________________________
More information about the New-bugs-announce
mailing list