From: Aaron Lipinski Date: Fri, 16 Apr 2021 20:36:55 +0000 (+1200) Subject: dont show json option if not available X-Git-Tag: v0.95~5^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F399%2Fhead;p=thirdparty%2Fmtr.git dont show json option if not available --- 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);