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 benjamin.peterson
Recipients benjamin.peterson
Date 2014-03-20.18:56:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395341764.54.0.268971679103.issue21000@psf.upfronthosting.co.za>
In-reply-to
Content
I current get this behavior:
% python3 -m json.tool -h
Traceback (most recent call last):
  File "/usr/lib64/python3.3/runpy.py", line 160, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python3.3/runpy.py", line 73, in _run_code
    exec(code, run_globals)
  File "/usr/lib64/python3.3/json/tool.py", line 40, in <module>
    main()
  File "/usr/lib64/python3.3/json/tool.py", line 21, in main
    infile = open(sys.argv[1], 'r')
FileNotFoundError: [Errno 2] No such file or directory: '-h'

Instead of that, json.tool should show a helpful message expalining what it does in response to the -h or --help flags.
History
Date User Action Args
2014-03-20 18:56:04benjamin.petersonsetrecipients: + benjamin.peterson
2014-03-20 18:56:04benjamin.petersonsetmessageid: <1395341764.54.0.268971679103.issue21000@psf.upfronthosting.co.za>
2014-03-20 18:56:04benjamin.petersonlinkissue21000 messages
2014-03-20 18:56:04benjamin.petersoncreate