From: Gerhard Sittig Date: Sun, 26 Feb 2017 17:15:23 +0000 (+0100) Subject: runtc: minor nits in usage(), add missing options X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-test.git;a=commitdiff_plain;h=987819ad8910f5fedca4553706ec88919a3c9ad9;ds=sidebyside 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. --- 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 \n"); - printf(" -p (optional)\n"); - printf(" -o (optional)\n"); + printf("Usage: runtc [-dPpoiOfcS]\n"); + printf(" -d (enables debug output)\n"); + printf(" -P \n"); + printf(" -p (optional)\n"); + printf(" -o (optional)\n"); printf(" -i \n"); printf(" -O \n"); printf(" -f (optional)\n"); printf(" -c (optional)\n"); + printf(" -S (enables statistics)\n"); exit(msg ? 1 : 0); }