summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorNicolas Williams <nico@cryptonector.com>2014-07-20 00:04:24 -0500
committerNicolas Williams <nico@cryptonector.com>2014-07-20 00:04:24 -0500
commit3362fb3406f45485cd89c7676e90a3434d87124a (patch)
tree733169442084e6862b7abc6d6c67a9f81bf64f70 /main.c
parent8c3d503d548950d119a056f137023116dcac6bd1 (diff)
Add -n to short usage msg; fix --arg msg
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files 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 <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);
}