From df9e4fc6c2250afb7f68f2e20e372b406f72782d Mon Sep 17 00:00:00 2001 From: Vegard Berg Date: Thu, 30 Nov 2023 12:05:16 +0100 Subject: [PATCH] Updated README. --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 3f47c56..e0b8d30 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,13 @@ Very simple tool to search by string or number value and get the JSON key from it. ## Usage +`jsonsearch [-all] [-type=(string|number)] [|-]` + +- `-all` will search for all occurrences +- `-type` will set the type to search for; defaults to string +- `` is the value to match against +- `|-` is either a relative file path or a dash, indicating to read from STDIN. + ```sh # Search for the first occurrence of 'foo Bar'. jsonsearch "foo Bar" myfile.json