diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2017-02-26 18:15:23 +0100 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2017-02-27 22:55:05 +0100 |
commit | 987819ad8910f5fedca4553706ec88919a3c9ad9 (patch) | |
tree | 22862621afa2807cf92f3706a6b19c2209dc97cd /decoder | |
parent | ffac3f0132640f5f7df22218fa03065d7a1ffad9 (diff) | |
download | sigrok-test-987819ad8910f5fedca4553706ec88919a3c9ad9.tar.gz sigrok-test-987819ad8910f5fedca4553706ec88919a3c9ad9.zip |
runtc: minor nits in usage(), add missing options
Adjust the screen layout of usage() output: Align parameters to options
in identical ways, to separate them from descriptions for options which
don't take parameters. Add previously not listed options.
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/runtc.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/decoder/runtc.c b/decoder/runtc.c index f175f6a..3d0bfd8 100644 --- a/decoder/runtc.c +++ b/decoder/runtc.c @@ -136,15 +136,16 @@ static void usage(const char *msg) if (msg) fprintf(stderr, "%s\n", msg); - printf("Usage: runtc [-dPpoiOf]\n"); - printf(" -d Debug\n"); - printf(" -P <protocol decoder>\n"); - printf(" -p <channelname=channelnum> (optional)\n"); - printf(" -o <channeloption=value> (optional)\n"); + printf("Usage: runtc [-dPpoiOfcS]\n"); + printf(" -d (enables debug output)\n"); + printf(" -P <protocol decoder>\n"); + printf(" -p <channelname=channelnum> (optional)\n"); + printf(" -o <channeloption=value> (optional)\n"); printf(" -i <input file>\n"); printf(" -O <output-pd:output-type[:output-class]>\n"); printf(" -f <output file> (optional)\n"); printf(" -c <coverage report> (optional)\n"); + printf(" -S (enables statistics)\n"); exit(msg ? 1 : 0); } |