Skip to content

Commit 178176e

Browse files
committed
Undocument unused options and minor edits
1 parent 5c10d94 commit 178176e

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

JSONPath.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@ usage() {
106106
echo "Usage: JSONPath.sh [-n] [-s] [-b] [j] [-h] [-f FILE] [pattern]"
107107
echo
108108
echo "pattern - the JSONPath query. Defaults to '$.*' if not supplied."
109-
echo "-s - Remove escaping of the solidus symbol (straight slash)."
109+
#echo "-s - Remove escaping of the solidus symbol (straight slash)."
110110
echo "-b - Brief. Only show values."
111111
echo "-j - JSON ouput."
112112
echo "-u - Strip unnecessary leading path elements."
113113
echo "-i - Case insensitive."
114-
echo "-p - Pass-through to the JSON parser. Useful with 'grep'."
114+
echo "-p - Pass-through to the JSON parser."
115115
echo "-w - Match whole words only (for filter script expression)."
116116
echo "-f FILE - Read a FILE instead of stdin."
117-
echo "-n - No-head. Do not show nodes that have no path (lines that start with [])."
117+
#echo "-n - No-head. Do not show nodes that have no path (lines that start with [])."
118118
echo "-h - This help text."
119119
echo
120120
}

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,14 @@ pattern
2121
> Case insensitive searching.
2222
2323
-j
24-
> Output in JSON format.
24+
> Output in JSON format, instead of JSON.sh format.
2525
2626
-u
2727
> Strip unnecessary leading path elements.
2828
2929
-p
30-
> Pass-through to the JSON parser. Useful with 'grep'.
31-
32-
-n
33-
> No-head. Don't show nodes that have no path. Normally these output a leading '[]', which you can't use in a bash array.
34-
35-
-s
36-
> Remove escaping of the solidus symbol (stright slash).
30+
> Pass JSON.sh formatted data through to the JSON parser only. Useful after
31+
> JSON.sh data has been manipulated.
3732
3833
-h
3934
> Show help text.

0 commit comments

Comments
 (0)