summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2019-08-01 11:06:06 +0200
committerKarel Zak2019-08-01 11:06:06 +0200
commit0c493067dddfed8989ee143873e1cda5d2fe3cb9 (patch)
treec604bf412f3bc11b19bb307ad2756ceec63dfc71
parentlibblkid: fix file descriptor leak in blkid_verify() (diff)
downloadkernel-qcow2-util-linux-0c493067dddfed8989ee143873e1cda5d2fe3cb9.tar.gz
kernel-qcow2-util-linux-0c493067dddfed8989ee143873e1cda5d2fe3cb9.tar.xz
kernel-qcow2-util-linux-0c493067dddfed8989ee143873e1cda5d2fe3cb9.zip
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 <kzak@redhat.com>
-rw-r--r--sys-utils/choom.11
-rw-r--r--sys-utils/choom.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/sys-utils/choom.1 b/sys-utils/choom.1
index 2b844cbe2..def31d5f0 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 1096ab186..b3d3e4d91 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);