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 eric.araujo
Recipients barry, eric.araujo, serhiy.storchaka, vstinner
Date 2022-01-01.18:47:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Question about the implementation:
I’ve found the parsing of command-line params in Python/initconfig.c and Python/preconfig.c.
Help is handled in initconfig, X options in preconfig.

A) could add a value to the right struct for "-X help", set it in preconfig, handle it in initconfig (by printing X options help and exiting, maybe reusing the existing print help function or writing a very similar one next to it)
B) or detect the option in preconfig, print and exit right there

Which option is best?
Date User Action Args
2022-01-01 18:47:28eric.araujosetrecipients: + eric.araujo, barry, vstinner, serhiy.storchaka
2022-01-01 18:47:28eric.araujosetmessageid: <>
2022-01-01 18:47:28eric.araujolinkissue46142 messages
2022-01-01 18:47:28eric.araujocreate