From: Petr Štetiar Date: Sat, 23 Nov 2019 22:40:48 +0000 (+0100) Subject: jshn: fix missing usage for -p and -o arguments X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=26586dae43a83d286762c73b49b98aa8dfc852c3;p=project%2Flibubox.git jshn: fix missing usage for -p and -o arguments 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 --- 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: