On Thu, Jun 15, 2023 at 7:50 AM Thomas Passin <[email protected]> wrote:

I say, if you don't need all the complexity of argparse don't use it!


*Nobody *needs all that complexity :-)

The argparse module is founded on a design mistake that python was created
to avoid. In effect, argparse creates a specialized internal scripting
language masquerading as an API. This API/language has no advantages:

- Why use specialized parsers (and subparsers, and all the other blah,
blah, blah) when regexs suffice?
- Why compute a help message when a string suffices?
- It's easy to *compute* all valid arguments by applying a simple regex to
the help message.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3UC71FumuEjckEJEf1U-8CcPuZFnV4nELVLZ2wmE42Jw%40mail.gmail.com.

Reply via email to