]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
client: only output supported formats
authorVincent Bernat <vincent@bernat.im>
Sat, 9 May 2015 10:51:53 +0000 (12:51 +0200)
committerVincent Bernat <vincent@bernat.im>
Sat, 9 May 2015 10:51:53 +0000 (12:51 +0200)
src/client/lldpcli.c

index af6e0c3bc1d848447297c28c603190379de2f7a4..7a852a1b2bc09eeb026306abb3681ec91926ce3c 100644 (file)
@@ -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");