tshark: put -G elastic-mapping in help under ifdef.
authorDario Lombardo <lomato@gmail.com>
Thu, 19 Apr 2018 10:33:22 +0000 (12:33 +0200)
committerDario Lombardo <lomato@gmail.com>
Thu, 19 Apr 2018 14:53:48 +0000 (14:53 +0000)
Change-Id: I75cfc26844ae72f4b608f0714945b1affdac64f2
Reviewed-on: https://code.wireshark.org/review/27033
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@gmail.com>
tshark.c

index c617642def8e375daff9a00a395d91c8e384a25a..fb8c6ede1260d2faf5ad95512cb818eddf234017 100644 (file)
--- a/tshark.c
+++ b/tshark.c
@@ -476,7 +476,9 @@ glossary_option_help(void)
   fprintf(output, "  -G column-formats        dump column format codes and exit\n");
   fprintf(output, "  -G decodes               dump \"layer type\"/\"decode as\" associations and exit\n");
   fprintf(output, "  -G dissector-tables      dump dissector table names, types, and properties\n");
+#ifdef HAVE_JSONGLIB
   fprintf(output, "  -G elastic-mapping       dump ElasticSearch mapping file\n");
+#endif
   fprintf(output, "  -G fieldcount            dump count of header fields and exit\n");
   fprintf(output, "  -G fields                dump fields glossary and exit\n");
   fprintf(output, "  -G ftypes                dump field type basic and descriptive names\n");