[issue43874] argparse crashes on subparsers with no dest/metava

2021-08-03 Thread Terence Honles
Terence Honles added the comment: Closing as a duplicate of https://bugs.python.org/issue29298 (which was recently merged and caused conflicts with my patch) -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Py

[issue43874] argparse crashes on subparsers with no dest/metava

2021-04-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Wait for responses -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue43874] argparse crashes on subparsers with no dest/metava

2021-04-24 Thread Terence Honles
Terence Honles added the comment: Sorry I didn't know what to put, and now that you changed it I understand what behavior means. Thanks for changing it. Should I do anything further? Not sure how to proceed. -- ___ Python tracker

[issue43874] argparse crashes on subparsers with no dest/metava

2021-04-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Terence, a 'crash' for this tracker is a core dump or equivalent with no exception/traceback. -- nosy: +terry.reedy stage: -> patch review type: crash -> behavior versions: -Python 3.6, Python 3.7 ___ Python trac

[issue43874] argparse crashes on subparsers with no dest/metava

2021-04-18 Thread Terence Honles
Terence Honles added the comment: Thanks for the context Paul. I didn't think to look in the tracker for an existing issue, sorry! I'm not sure if documenting the requirement is sufficient or something that a user would go towards with the error as it is. I _might_ suggest throwing an error

[issue43874] argparse crashes on subparsers with no dest/metava

2021-04-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Would it be more reasonable to provide a default name (which is what the PR does) or to raise an exception? -- ___ Python tracker ___ ___

[issue43874] argparse crashes on subparsers with no dest/metava

2021-04-17 Thread paul j3
paul j3 added the comment: This is a well known (if not fixed) issue - if subparsers is required, then a dest is needed to give a working error message. Looks like we've variously talked about documenting the requirement, or using some sort of substitute for the missing name. One of my hig

[issue43874] argparse crashes on subparsers with no dest/metava

2021-04-17 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +paul.j3, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue43874] argparse crashes on subparsers with no dest/metava

2021-04-16 Thread Terence Honles
New submission from Terence Honles : When creating a simple required subparser the following will result in an error instead of an error message: >>> from argparse import ArgumentParser >>> >>> parser = ArgumentParser() >>> subparsers = parser.add_subparsers(required=True) >>> subparsers.add_p