From: Chris Down Date: Tue, 1 Nov 2022 00:46:18 +0000 (+0000) Subject: pkill: Don't show --echo twice X-Git-Tag: v4.0.2_rc1~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c92da2adc5d8bb4282ca210e4a20a552daa00c42;p=procps-ng pkill: Don't show --echo twice Commit c8384e682c1c ("pgrep: add pwait") changed from the old i_am_pkill logic, but mistakenly missed a break in the pkill case. This results in showing -e/--echo twice when running `pkill -h'. Signed-off-by: Chris Down --- diff --git a/src/pgrep.c b/src/pgrep.c index 1c15981c..eeebf3e8 100644 --- a/src/pgrep.c +++ b/src/pgrep.c @@ -160,6 +160,7 @@ static int __attribute__ ((__noreturn__)) usage(int opt) fputs(_(" -, --signal signal to send (either number or name)\n"), fp); fputs(_(" -q, --queue integer value to be sent with the signal\n"), fp); fputs(_(" -e, --echo display what is killed\n"), fp); + break; #ifdef ENABLE_PIDWAIT case PIDWAIT: fputs(_(" -e, --echo display PIDs before waiting\n"), fp);