[issue21000] json.tool ought to have a help flag

2014-03-21 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21000 ___ ___

[issue21000] json.tool ought to have a help flag

2014-03-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: Very nice, but your help message still doesn't explain what json.tool does. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21000 ___

[issue21000] json.tool ought to have a help flag

2014-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Perhaps this thing should use argparse? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21000 ___

[issue21000] json.tool ought to have a help flag

2014-03-21 Thread Berker Peksag
Berker Peksag added the comment: Here's a new patch. Changes: - Updated the output of -h option - Added documentation - Switched to argparse -- Added file: http://bugs.python.org/file34554/issue21000_v2.diff ___ Python tracker rep...@bugs.python.org

[issue21000] json.tool ought to have a help flag

2014-03-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: This looks like a nice improvement. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21000 ___

[issue21000] json.tool ought to have a help flag

2014-03-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks a lot for the excellent patch! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21000 ___ ___

[issue21000] json.tool ought to have a help flag

2014-03-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset a2ad16e86e60 by Benjamin Peterson in branch 'default': improve the command-line interface of json.tool (closes #21000) http://hg.python.org/cpython/rev/a2ad16e86e60 -- nosy: +python-dev resolution: - fixed stage: patch review -

[issue21000] json.tool ought to have a help flag

2014-03-20 Thread Benjamin Peterson
New submission from Benjamin Peterson: 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

[issue21000] json.tool ought to have a help flag

2014-03-20 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file34534/issue21000.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21000

[issue21000] json.tool ought to have a help flag

2014-03-20 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21000 ___ ___ Python-bugs-list