From: Uwe Hermann Date: Tue, 8 May 2012 22:06:01 +0000 (+0200) Subject: cli: -V: Print protocol description upon "-l 3" or higher. X-Git-Tag: sigrok-cli-0.3.1~23 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=206220366328498099b3f402a7792a9d3ecfdbfb;p=sigrok-cli.git cli: -V: Print protocol description upon "-l 3" or higher. --- diff --git a/sigrok-cli.c b/sigrok-cli.c index 2aec205..a4c9303 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -124,6 +124,9 @@ static void show_version(void) for (l = srd_decoder_list(); l; l = l->next) { dec = l->data; printf(" %-20s %s\n", dec->id, dec->longname); + /* Print protocol description upon "-l 3" or higher. */ + if (opt_loglevel >= SR_LOG_INFO) + printf(" %-20s %s\n", "", dec->desc); } srd_exit(); }