From: Vincent Bernat Date: Sat, 9 May 2015 10:51:53 +0000 (+0200) Subject: client: only output supported formats X-Git-Tag: 0.7.15~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3fa294062b973cf93e8ca6bfeb0857823ce506d5;p=thirdparty%2Flldpd.git client: only output supported formats --- 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");