[issue27619] getopt should strip whitespace from long arguments
Serhiy Storchaka
report at bugs.python.org
Tue Jul 26 13:49:05 EDT 2016
Serhiy Storchaka added the comment:
C getopt doesn't strip trailing spaces. What you mistook for stripping trailing spaces is actually a feature of GNU getopt that allows you to use shortened variant of long option.
$ ./getopdemo "-- sp" 1 --eg 2 "-- ch" 3
option spam with arg 1
option eggs with arg 2
option cheese with arg 3
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27619>
_______________________________________
More information about the Python-bugs-list
mailing list