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 andersk
Recipients andersk, docs@python
Date 2019-05-30.19:50:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The optparse library is currently marked in the documentation as deprecated in favor of argparse.  However, argparse uses a nonstandard reinterpretation of Unix command line grammars that makes certain arguments impossible to express, and causes scripts to break when ported from optparse to argparse.  See the bug report I filed nine years ago:
argparse does not accept options taking arguments beginning with dash (regression from optparse)

The conclusion of the core developers (e.g. msg309691) seems to have been that although it’s a valid bug, it can’t or won’t be fixed with the current argparse architecture.

I was asked by another core developer to file a bug report for the de-deprecation of optparse (, so here it is.
Date User Action Args
2019-05-30 19:50:25andersksetrecipients: + andersk, docs@python
2019-05-30 19:50:25andersksetmessageid: <>
2019-05-30 19:50:25andersklinkissue37103 messages
2019-05-30 19:50:25anderskcreate