]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
choom: improve docs
authorKarel Zak <kzak@redhat.com>
Thu, 1 Aug 2019 09:06:06 +0000 (11:06 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 1 Aug 2019 09:06:06 +0000 (11:06 +0200)
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>
sys-utils/choom.1
sys-utils/choom.c

index 2b844cbe2e225f0e30c73966ed37c999cee06f3b..def31d5f0b783d0453aeb75fc1a4fd676cc1d8ec 100644 (file)
@@ -15,6 +15,7 @@ choom \- display and adjust OOM-killer score.
 .B choom
 .B \-n
 .I number
+.B [\-\-]
 .IR command\  [ argument ...]
 
 .SH DESCRIPTION
index 1096ab1863ed13fcbebfc8e20c4bee6e9b0c0ee2..b3d3e4d91368c2a2bc1b417a28e9b156b31f4aac 100644 (file)
@@ -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);