From e46d3a3c0fbd157d869dac3c15b1960088b9aa13 Mon Sep 17 00:00:00 2001 From: Philip Heron Date: Thu, 28 Aug 2014 20:35:31 +0100 Subject: [PATCH] Add a useful usage message. --- main.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 08bb15e..cf4f4e1 100644 --- a/main.c +++ b/main.c @@ -25,7 +25,17 @@ void exit_usage() { - fprintf(stderr, "Usage: ssdv [-e|-d] [-n] [-t ] [-c ] [-i ] [] []\n"); + fprintf(stderr, + "Usage: ssdv [-e|-d] [-n] [-t ] [-c ] [-i ] [] []\n" + "\n" + " -e Encode JPEG to SSDV packets.\n" + " -d Decode SSDV packets to JPEG.\n" + "\n" + " -n Encode or decode packets with no FEC.\n" + " -t For testing, drops the specified percentage of packets while decoding.\n" + " -c Set the callign. Accepts A-Z 0-9 and space, up to 6 characters.\n" + " -i Set the image ID (0-255).\n" + "\n"); exit(-1); }