summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Štetiar2019-11-23 22:40:48 +0000
committerPetr Štetiar2019-11-24 12:26:58 +0000
commit26586dae43a83d286762c73b49b98aa8dfc852c3 (patch)
treea11e2a8e89f4a195fa2d25f633c44cf3a214d9a6
parent8e832a771d3ab6a852cd976a0264271be231c1b4 (diff)
downloadlibubox-26586dae43a83d286762c73b49b98aa8dfc852c3.tar.gz
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 <ynezz@true.cz>
-rw-r--r--jshn.c2
-rw-r--r--tests/cram/test_jshn.t2
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 <message>|-R <file>|-w\n", progname);
+ fprintf(stderr, "Usage: %s [-n] [-i] -r <message>|-R <file>|-o <file>|-p <prefix>|-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 <message>|-R <file>|-w
+ Usage: jshn [-n] [-i] -r <message>|-R <file>|-o <file>|-p <prefix>|-w
[2]
test bad json: