[issue24644] --help for runnable stdlib modules

2015-07-17 Thread Ezio Melotti
Ezio Melotti added the comment: > writing tests for the CLI are a pain too It shouldn't be particularly difficult to do it using script_helper.assert_python_{ok|failure}(), even though you could also check the argument /parsing/ separately without having to launch a subprocess. -- nos

[issue24644] --help for runnable stdlib modules

2015-07-17 Thread R. David Murray
R. David Murray added the comment: Yes, that's pretty much why things are in the state they are in ;) Still, opening individual issues for help problems with individual modules is the way to go, as you did (thank you). -- ___ Python tracker

[issue24644] --help for runnable stdlib modules

2015-07-16 Thread Antony Lee
Antony Lee added the comment: To be honest I don't really plan to contribute any patch on this specific issue right now, the CLI interface of e.g. trace has some other serious issues (see e.g. #24649) that I don't want to work out, and writing tests for the CLI are a pain too (also why I haven

[issue24644] --help for runnable stdlib modules

2015-07-16 Thread R. David Murray
R. David Murray added the comment: Please open individual issues to address individual modules that you would like to contribute to improving. Adding/fixing help is often best done by rewriting the argument parsing...contributions have been made to improve several modules already. In most ca

[issue24644] --help for runnable stdlib modules

2015-07-16 Thread Antony Lee
New submission from Antony Lee: Support for python -m [-h|--help] is a bit patchy right now: $ python -mpdb -h usage: pdb.py [-c command] ... pyfile [arg] ... $ python -mpdb --help Traceback (most recent call last): File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main "_