From 9627572d43cb8dc22043ac637b0e450a63c3ca12 Mon Sep 17 00:00:00 2001 From: Aaron Lipinski Date: Sat, 17 Apr 2021 08:36:55 +1200 Subject: [PATCH] dont show json option if not available --- ui/mtr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/mtr.c b/ui/mtr.c index 6fd0d70..2c6fc68 100644 --- a/ui/mtr.c +++ b/ui/mtr.c @@ -142,7 +142,9 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out) fputs(" -w, --report-wide output wide report\n", out); fputs(" -c, --report-cycles COUNT set the number of pings sent\n", out); +#ifdef HAVE_JANSSON fputs(" -j, --json output json\n", out); +#endif fputs(" -x, --xml output xml\n", out); fputs(" -C, --csv output comma separated values\n", out); -- 2.47.2