From 35bf7b70619288cff7d67e279fa952c72345cc63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20K=C3=B6gl?= Date: Sat, 12 Oct 2013 12:19:41 +0200 Subject: add comments to commandline doc --- doc/commandline.rst | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/commandline.rst b/doc/commandline.rst index 7678442..b4a01de 100644 --- a/doc/commandline.rst +++ b/doc/commandline.rst @@ -20,14 +20,23 @@ The program has the following usage :: -v, --version show program's version number and exit -The following shows example usage :: +Example +^^^^^^^ +.. code-block:: bash + + # inspect JSON files $ cat a.json { "a": [1, 2, 3] } + $ cat b.json { "a": {"b": [1, 3, 4]}, "b": 1 } + + # inspect JSON pointer $ cat ptr.json "/a" + + # resolve JSON pointer $ jsonpointer ptr.json a.json b.json [1, 2, 3] {"b": [1, 3, 4]} -- cgit v1.2.1