Spot the bug: getoptquestion.py
Steven D'Aprano
steve at pearwood.info
Mon Jul 25 21:12:11 EDT 2016
On Thu, 7 Jul 2016 09:30 pm, Oscar wrote:
> Thanks all for the input. I think it all boils down to: "If you don't
> want a space in your long_option, don't put a space in there".
No, I don't think so. I think we can do better than that:
http://bugs.python.org/issue27619
What decided it for me was that the shell getopt on my system ignores
leading and trailing spaces.
--
Steven
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.
More information about the Python-list
mailing list