From 3fa294062b973cf93e8ca6bfeb0857823ce506d5 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 9 May 2015 12:51:53 +0200 Subject: [PATCH] client: only output supported formats --- src/client/lldpcli.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/client/lldpcli.c b/src/client/lldpcli.c index af6e0c3b..7a852a1b 100644 --- a/src/client/lldpcli.c +++ b/src/client/lldpcli.c @@ -68,7 +68,14 @@ usage() fprintf(stderr, "-d Enable more debugging information.\n"); fprintf(stderr, "-u socket Specify the Unix-domain socket used for communication with lldpd(8).\n"); - fprintf(stderr, "-f format Choose output format (plain, keyvalue, json or xml).\n"); + fprintf(stderr, "-f format Choose output format (plain, keyvalue" +#if defined USE_XML + ", xml" +#endif +#if defined USE_JANSSON || defined USE_JSONC + ", json" +#endif + ").\n"); if (!is_lldpctl(NULL)) fprintf(stderr, "-c conf Read the provided configuration file.\n"); -- 2.39.5