From 3362fb3406f45485cd89c7676e90a3434d87124a Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Sun, 20 Jul 2014 00:04:24 -0500 Subject: [PATCH] Add -n to short usage msg; fix --arg msg --- main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index edf3f4fa..b555a5d7 100644 --- a/main.c +++ b/main.c @@ -31,11 +31,12 @@ static void usage(int code) { fprintf(stderr, "\tSome of the options include:\n"); fprintf(stderr, "\t -h\t\tthis message;\n"); fprintf(stderr, "\t -c\t\tcompact instead of pretty-printed output;\n"); - fprintf(stderr, "\t -s\t\tread all inputs into an array; apply filter to it;\n"); + fprintf(stderr, "\t -n\t\tuse `null` as the single input value;\n"); + fprintf(stderr, "\t -s\t\tread (slurp) all inputs into an array; apply filter to it;\n"); fprintf(stderr, "\t -r\t\toutput raw strings, not JSON texts;\n"); fprintf(stderr, "\t -R\t\tread raw strings, not JSON texts;\n"); - fprintf(stderr, "\t -arg a v\tset variable $a to value ;\n"); - fprintf(stderr, "\t -argfile a f\tset variable $a to JSON texts read from ;\n"); + fprintf(stderr, "\t --arg a v\tset variable $a to value ;\n"); + fprintf(stderr, "\t --argfile a f\tset variable $a to JSON texts read from ;\n"); fprintf(stderr, "\tSee the manpage for more options.\n"); exit(code); }