diff options
| author | Philip Heron <phil@sanslogic.co.uk> | 2014-08-28 20:35:31 +0100 |
|---|---|---|
| committer | Philip Heron <phil@sanslogic.co.uk> | 2014-08-28 20:35:31 +0100 |
| commit | e46d3a3c0fbd157d869dac3c15b1960088b9aa13 (patch) | |
| tree | af7534ad3290acff089bdafa79a1f6b6261d167a | |
| parent | 278004fb0c3c6058cca30c58a3d8ab62fbed4b46 (diff) | |
Add a useful usage message.
| -rw-r--r-- | main.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -25,7 +25,17 @@ void exit_usage() { - fprintf(stderr, "Usage: ssdv [-e|-d] [-n] [-t <percentage>] [-c <callsign>] [-i <id>] [<in file>] [<out file>]\n"); + fprintf(stderr, + "Usage: ssdv [-e|-d] [-n] [-t <percentage>] [-c <callsign>] [-i <id>] [<in file>] [<out file>]\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); } |
