From 26586dae43a83d286762c73b49b98aa8dfc852c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0tetiar?= Date: Sat, 23 Nov 2019 23:40:48 +0100 Subject: [PATCH] jshn: fix missing usage for -p and -o arguments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add missing usage hints for -p and -o arguments. Fixes: e16fa068a573 ("jshn: add support for namespaces") Fixes: eb30a03048f8 ("libubox, jshn: add option to write output to a file") Signed-off-by: Petr Štetiar --- jshn.c | 2 +- tests/cram/test_jshn.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jshn.c b/jshn.c index 28cfa8d..0940b5e 100644 --- a/jshn.c +++ b/jshn.c @@ -311,7 +311,7 @@ out: static int usage(const char *progname) { - fprintf(stderr, "Usage: %s [-n] [-i] -r |-R |-w\n", progname); + fprintf(stderr, "Usage: %s [-n] [-i] -r |-R |-o |-p |-w\n", progname); return 2; } diff --git a/tests/cram/test_jshn.t b/tests/cram/test_jshn.t index d228f0e..937c7e1 100644 --- a/tests/cram/test_jshn.t +++ b/tests/cram/test_jshn.t @@ -6,7 +6,7 @@ set jshn for convenience: check usage: $ jshn - Usage: jshn [-n] [-i] -r |-R |-w + Usage: jshn [-n] [-i] -r |-R |-o |-p |-w [2] test bad json: