Message271400
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 |
|
Date |
User |
Action |
Args |
2016-07-26 17:49:05 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, steven.daprano, r.david.murray, berker.peksag |
2016-07-26 17:49:05 | serhiy.storchaka | set | messageid: <1469555345.29.0.627091369485.issue27619@psf.upfronthosting.co.za> |
2016-07-26 17:49:05 | serhiy.storchaka | link | issue27619 messages |
2016-07-26 17:49:05 | serhiy.storchaka | create | |
|