]> granicus.if.org Git - jq/commitdiff
Add -n to short usage msg; fix --arg msg
authorNicolas Williams <nico@cryptonector.com>
Sun, 20 Jul 2014 05:04:24 +0000 (00:04 -0500)
committerNicolas Williams <nico@cryptonector.com>
Sun, 20 Jul 2014 05:04:24 +0000 (00:04 -0500)
main.c

diff --git a/main.c b/main.c
index edf3f4fa3a70300673ee7882d4116aeb01ca0a23..b555a5d7b27c575a2cf3adce982e4ffa15bfcd17 100644 (file)
--- 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 <v>;\n");
-  fprintf(stderr, "\t -argfile a f\tset variable $a to JSON texts read from <f>;\n");
+  fprintf(stderr, "\t --arg a v\tset variable $a to value <v>;\n");
+  fprintf(stderr, "\t --argfile a f\tset variable $a to JSON texts read from <f>;\n");
   fprintf(stderr, "\tSee the manpage for more options.\n");
   exit(code);
 }