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 Max Rothman
Recipients Max Rothman, martin.panter, r.david.murray
Date 2017-03-04.17:09:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488647376.94.0.396536825972.issue29715@psf.upfronthosting.co.za>
In-reply-to
Content
Martin: huh, I didn't notice that documentation. The error message definitely could be improved.

It still seems like an odd choice given that argparse knows about the expected spec, so it knows whether there are any options or not. Perhaps one could enable/disable this cautious behavior with a flag passed to ArgumentParser? It was rather surprising in my case, since I was parsing morse code and the arguments were random combinations of "-", "_", and "*", so it wasn't immediately obvious what the issue was.
History
Date User Action Args
2017-03-04 17:09:36Max Rothmansetrecipients: + Max Rothman, r.david.murray, martin.panter
2017-03-04 17:09:36Max Rothmansetmessageid: <1488647376.94.0.396536825972.issue29715@psf.upfronthosting.co.za>
2017-03-04 17:09:36Max Rothmanlinkissue29715 messages
2017-03-04 17:09:36Max Rothmancreate