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 serhiy.storchaka
Recipients berker.peksag, r.david.murray, serhiy.storchaka, steven.daprano
Date 2016-07-26.17:49:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469555345.29.0.627091369485.issue27619@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-07-26 17:49:05serhiy.storchakasetrecipients: + serhiy.storchaka, steven.daprano, r.david.murray, berker.peksag
2016-07-26 17:49:05serhiy.storchakasetmessageid: <1469555345.29.0.627091369485.issue27619@psf.upfronthosting.co.za>
2016-07-26 17:49:05serhiy.storchakalinkissue27619 messages
2016-07-26 17:49:05serhiy.storchakacreate