From bbc3eb81813913aa2a9a0bafb4f3d0b239e9efba Mon Sep 17 00:00:00 2001 From: German Service Network Date: Wed, 30 Apr 2025 21:56:03 +0200 Subject: [PATCH] Change of the JSON return text if -c or -C was not specified --- ci/test-16-json-output.pl | 2 +- src/fping.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/test-16-json-output.pl b/ci/test-16-json-output.pl index 84fa3a1..bcf159d 100644 --- a/ci/test-16-json-output.pl +++ b/ci/test-16-json-output.pl @@ -189,5 +189,5 @@ $cmd->stderr_is_eq(""); my $cmd = Test::Command->new(cmd => "fping -J 127.0.0.1"); $cmd->exit_is_num(1); $cmd->stdout_is_eq(""); -$cmd->stderr_is_eq("fping: with -J or --json required -c or -C\n"); +$cmd->stderr_is_eq("fping: option -J, --json requires -c or -C\n"); } diff --git a/src/fping.c b/src/fping.c index a06f9f0..bb60a66 100644 --- a/src/fping.c +++ b/src/fping.c @@ -1012,7 +1012,7 @@ int main(int argc, char **argv) } if (json_flag && !count_flag) { - fprintf(stderr, "%s: with -J or --json required -c or -C\n", prog); + fprintf(stderr, "%s: option -J, --json requires -c or -C\n", prog); exit(1); } -- 2.43.0