jshn: fix missing usage for -p and -o arguments
authorPetr Štetiar <ynezz@true.cz>
Sat, 23 Nov 2019 22:40:48 +0000 (23:40 +0100)
committerPetr Štetiar <ynezz@true.cz>
Sun, 24 Nov 2019 12:26:58 +0000 (13:26 +0100)
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>
jshn.c
tests/cram/test_jshn.t

diff --git a/jshn.c b/jshn.c
index 28cfa8df7a21c0c7f97258812b3698d2dfc107b9..0940b5efd9fa7a75c86190f8f74d9b4abf468201 100644 (file)
--- 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;
 }
 
index d228f0e648c653a4c373180ec77d77d8256071aa..937c7e1055e8853d2c1f140ddfd68dd2009413a9 100644 (file)
@@ -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: