From 28e6f804bf15f2d2e311c32a2519c8dedb4e8560 Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Fri, 3 Dec 2021 12:27:40 +0200 Subject: [PATCH] Modified --jsonpath help string --- README.md | 2 +- bin/kennson.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bf37235..a5a36b1 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ The compiled executable will be inside the `bin` folder, named `kennson.exe` (re ```text -f, --file= Read JSON from file instead of stdin --input= Read JSON as parameter instead of stdin - --jsonpath= Display only the matches of the JSON document (also --path) + --jsonpath= Display only the matches of the JSON path (also --path) -p, --jsonpointer= Display only the matches of the JSON pointer (also --pointer) -i, --indent Set space indentation level (prefix with t for tab indentation) (defaults to "2") diff --git a/bin/kennson.dart b/bin/kennson.dart index 57a33ef..42d31d1 100644 --- a/bin/kennson.dart +++ b/bin/kennson.dart @@ -11,7 +11,7 @@ void main(List arguments) { final parser = ArgParser() ..addOption('file', abbr: 'f', help: 'Read JSON from file instead of stdin', valueHelp: 'filename') ..addOption('input', help: 'Read JSON as parameter instead of stdin', valueHelp: 'json input') - ..addOption('jsonpath', aliases: ['path'], help: 'Display only the matches of the JSON document', valueHelp: 'JSONPath query') + ..addOption('jsonpath', aliases: ['path'], help: 'Display only the matches of the JSON path', valueHelp: 'JSONPath query') ..addOption('jsonpointer', aliases: ['pointer'], abbr: 'p', help: 'Display only the matches of the JSON pointer', valueHelp: 'JSON Pointer') ..addOption('indent', abbr: 'i', help: 'Set space indentation level (prefix with t for tab indentation)', defaultsTo: '2') ..addOption('max-depth', abbr: 'd', help: 'Specify maximum nesting before stopping printing');