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@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 <rep...@bugs.python.org> <http://bugs.python.org/issue27619> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com