From: Karel Zak Date: Thu, 1 Aug 2019 09:06:06 +0000 (+0200) Subject: choom: improve docs X-Git-Tag: v2.35-rc1~293 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c493067dddfed8989ee143873e1cda5d2fe3cb9;p=thirdparty%2Futil-linux.git choom: improve docs It's not obvious from the current docs that you have to explicitly split command line options and wanted commands. Addresses: https://github.com/karelzak/util-linux/issues/833 Signed-off-by: Karel Zak --- diff --git a/sys-utils/choom.1 b/sys-utils/choom.1 index 2b844cbe2e..def31d5f0b 100644 --- a/sys-utils/choom.1 +++ b/sys-utils/choom.1 @@ -15,6 +15,7 @@ choom \- display and adjust OOM-killer score. .B choom .B \-n .I number +.B [\-\-] .IR command\ [ argument ...] .SH DESCRIPTION diff --git a/sys-utils/choom.c b/sys-utils/choom.c index 1096ab1863..b3d3e4d913 100644 --- a/sys-utils/choom.c +++ b/sys-utils/choom.c @@ -37,7 +37,7 @@ static void __attribute__((__noreturn__)) usage(void) fprintf(out, _(" %1$s [options] -p pid\n" " %1$s [options] -n number -p pid\n" - " %1$s [options] -n number command [args...]]\n"), + " %1$s [options] -n number [--] command [args...]]\n"), program_invocation_short_name); fputs(USAGE_SEPARATOR, out);