One more thing: from reading your proposal, it sounds like your actual issue may be that you’ve got something you want to distribute to end-users who aren’t Python experts to run as `python -m spam`, and the usage messages they get back are confusing them?
If so, why not just use a setuptools entry point script, so your users can just run `spam` instead of `python -m spam`? That isn’t appropriate for scripts like pip or venv that are all about the Python installation itself (someone with multiple Pythons installed will almost certainly need to run python3.7 -m pip, python3.8 -m pip, pypy3 -m pip, ~/bin/python -m pip, etc. and coming up with names for all of those—especially automatically—would be silly), but that’s not the case for most scripts. Sent from my iPhone > On Aug 23, 2019, at 08:16, Michael Hooreman <[email protected]> wrote: > > Hello, > > I have a proposal to improve support of __main__.py (python -m foobar) > invocation to argparse.ArgumentParser > > You can find attached a PEP draft. > > Unfortunately, I'm not very confident on how to add that PEP and ... > honnestly not very used to github. > > In short, can you help me and advise on this? > > Thanks a lot and best regards, > Michaël Hooreman > > <pep-9999.rst> > _______________________________________________ > Python-ideas mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/[email protected]/message/VEGHR5GACYW7M6RVNEC323L2V43WJIKP/ > Code of Conduct: http://python.org/psf/codeofconduct/ _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/DUAWIRLUBWCFOZ2N6AMI5CLIRGWBHQGL/ Code of Conduct: http://python.org/psf/codeofconduct/
