homepage

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 Antony.Lee
Recipients Antony.Lee
Date 2015年07月16日.16:30:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437064257.55.0.10829517472.issue24644@psf.upfronthosting.co.za>
In-reply-to
Content
Support for python -m<runnable-stdlib-module> [-h|--help] is a bit patchy right now:
$ python -mpdb -h
usage: pdb.py [-c command] ... pyfile [arg] ...
<help elided>
$ python -mpdb --help
Traceback (most recent call last):
 File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
 "__main__", mod_spec)
 File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
 exec(code, run_globals)
 File "/usr/lib/python3.4/pdb.py", line 1685, in <module>
 pdb.main()
 File "/usr/lib/python3.4/pdb.py", line 1629, in main
 opts, args = getopt.getopt(sys.argv[1:], 'hc:', ['--help', '--command='])
 File "/usr/lib/python3.4/getopt.py", line 93, in getopt
 opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
 File "/usr/lib/python3.4/getopt.py", line 157, in do_longs
 has_arg, opt = long_has_args(opt, longopts)
 File "/usr/lib/python3.4/getopt.py", line 174, in long_has_args
 raise GetoptError(_('option --%s not recognized') % opt, opt)
getopt.GetoptError: option --help not recognized
# <-- not a getopt specialist but --help is actually listed in the call to getopt!
$ python -mtrace -h
/usr/lib/python3.4/trace.py: option -h not recognized
Try `/usr/lib/python3.4/trace.py --help' for more information
$ python -mtrace --help
Usage: /usr/lib/python3.4/trace.py [OPTIONS] <file> [ARGS]
<help elided>
History
Date User Action Args
2015年07月16日 16:30:57Antony.Leesetrecipients: + Antony.Lee
2015年07月16日 16:30:57Antony.Leesetmessageid: <1437064257.55.0.10829517472.issue24644@psf.upfronthosting.co.za>
2015年07月16日 16:30:57Antony.Leelinkissue24644 messages
2015年07月16日 16:30:56Antony.Leecreate

AltStyle によって変換されたページ (->オリジナル) /