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 steven.daprano
Recipients steven.daprano
Date 2016-07-26.00:50:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469494217.58.0.75154224673.issue27619@psf.upfronthosting.co.za>
In-reply-to
Content
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@ando ~]$ getopt -o "" -l " spam , eggs " -- --spam --eggs arg
 --spam --eggs -- 'arg'


Python's getopt should do the same. (Patch attached.)
History
Date User Action Args
2016-07-26 00:50:17steven.dapranosetrecipients: + steven.daprano
2016-07-26 00:50:17steven.dapranosetmessageid: <1469494217.58.0.75154224673.issue27619@psf.upfronthosting.co.za>
2016-07-26 00:50:17steven.dapranolinkissue27619 messages
2016-07-26 00:50:16steven.dapranocreate