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 rhettinger
Recipients Christophe.Guillon, Clint Olsen, Socob, abacabadabacaba, amcnabb, andersk, bethard, cben, danielsh, davidben, drm, eric.araujo, eric.smith, evaned, fennec15, gaborjbernat, gdb, gfxmonk, karzes, maggyero, martin.panter, memeplex, nelhage, orivej, paul.j3, porton, r.david.murray, rhettinger, skilletaudio, spaceone, xtreak
Date 2021-12-27.06:39:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> we should undo the deprecation of optparse in the documentation 
> (, since the stated justification 
> for that deprecation was that optparse will not be developed further.

While optparse that it isn't being developed further, therebut will not be taken away.  IIRC the reason for this was that it too had become difficult to build out and that is what necessitated the creation of argparse -- there wasn't clean way to add the desired features (subparsers, actions, etc).

> If it's going to be closed, it should at least be acknowledged 
> that it *is* a fundamental design flaw

That seems a spiteful demand. It is more correct to say that the design met its original intended goals but unfortunately the structure of the first pass scan precludes cleanly handling arguments with dashes.  The limitations are noted in the docs in the section, "Arguments containing -". 

As Eric pointed out, there are alternative argument parsing packages available on PyPI.
Date User Action Args
2021-12-27 06:39:09rhettingersetrecipients: + rhettinger, cben, amcnabb, bethard, eric.smith, orivej, eric.araujo, r.david.murray, memeplex, gfxmonk, evaned, andersk, abacabadabacaba, gdb, nelhage, drm, davidben, martin.panter, paul.j3, skilletaudio, Christophe.Guillon, danielsh, spaceone, Clint Olsen, porton, Socob, maggyero, karzes, xtreak, fennec15, gaborjbernat
2021-12-27 06:39:09rhettingersetmessageid: <>
2021-12-27 06:39:09rhettingerlinkissue9334 messages
2021-12-27 06:39:09rhettingercreate