From 0c493067dddfed8989ee143873e1cda5d2fe3cb9 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 1 Aug 2019 11:06:06 +0200 Subject: [PATCH] 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 --- sys-utils/choom.1 | 1 + sys-utils/choom.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.2