jshn: fix missing usage for -p and -o arguments

Add missing usage hints for -p and -o arguments.

Fixes: e16fa068a5 ("jshn: add support for namespaces")
Fixes: eb30a03048 ("libubox, jshn: add option to write output to a file")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
This commit is contained in:
Petr Štetiar 2019-11-23 23:40:48 +01:00
parent 8e832a771d
commit 26586dae43
2 changed files with 2 additions and 2 deletions

2
jshn.c
View file

@ -311,7 +311,7 @@ out:
static int usage(const char *progname) 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; return 2;
} }

View file

@ -6,7 +6,7 @@ set jshn for convenience:
check usage: check usage:
$ jshn $ jshn
Usage: jshn [-n] [-i] -r <message>|-R <file>|-w Usage: jshn [-n] [-i] -r <message>|-R <file>|-o <file>|-p <prefix>|-w
[2] [2]
test bad json: test bad json: