From 3c8e283d6f8b24e67e958020123ab3a577cb306c Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Fri, 4 Mar 2016 22:02:31 -0800 Subject: [PATCH] Add help text. --- stutterfuzz.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/stutterfuzz.c b/stutterfuzz.c index 25a54ad..34e0c5c 100644 --- a/stutterfuzz.c +++ b/stutterfuzz.c @@ -311,7 +311,16 @@ int main(int argc, char *argv[]) { rand_init(); if (!parse_opts(argc, argv)) { - fprintf(stderr, "Usage: TODO\n"); + fprintf(stderr, + "Usage: %s [OPTION]...\n" + "\n" + "Options:\n" + "\t--blob-dir=PATH [required]\n" + "\t--host=HOST [required]\n" + "\t--port=PORT [required]\n" + "\t--cycle-ms=CYCLE_MILLSECONDS [default 50]\n" + "\t--num-conns=PARALLEL_CONNECTIONS [default 100]\n" + , argv[0]); exit(EXIT_FAILURE); }