aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2023-04-25 11:38:10 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2023-06-05 10:57:13 +0000
commit19677c0da80fe687e438489f7074ca1670c83952 (patch)
tree0405f4bfef178cf5ccbd8aff5ca19c5f3f903570 /bin
parent6180303a79bca73597db695ba6a3980049618406 (diff)
downloadsrc-19677c0da80fe687e438489f7074ca1670c83952.tar.gz
src-19677c0da80fe687e438489f7074ca1670c83952.zip
ps: Fix synopsis
In the -L mode, the -L flag is not optional. MFC after: 3 days Sponsored by: Klara Inc. (cherry picked from commit 3f46bf40a1b26c49b53df4ec504757c5d8c9f921)
Diffstat (limited to 'bin')
-rw-r--r--bin/ps/ps.14
-rw-r--r--bin/ps/ps.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/ps/ps.1 b/bin/ps/ps.1
index 25373adb7d73..bc760c174c11 100644
--- a/bin/ps/ps.1
+++ b/bin/ps/ps.1
@@ -29,7 +29,7 @@
.\" @(#)ps.1 8.3 (Berkeley) 4/18/94
.\" $FreeBSD$
.\"
-.Dd June 27, 2020
+.Dd April 25, 2023
.Dt PS 1
.Os
.Sh NAME
@@ -49,7 +49,7 @@
.Op Fl U Ar user Ns Op , Ns Ar user Ns Ar ...
.Nm
.Op Fl -libxo
-.Op Fl L
+.Fl L
.Sh DESCRIPTION
The
.Nm
diff --git a/bin/ps/ps.c b/bin/ps/ps.c
index 0c656d8a1544..141b57cfd683 100644
--- a/bin/ps/ps.c
+++ b/bin/ps/ps.c
@@ -1463,6 +1463,6 @@ usage(void)
"usage: ps " SINGLE_OPTS " [-O fmt | -o fmt] [-G gid[,gid...]]",
" [-J jid[,jid...]] [-M core] [-N system]",
" [-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]",
- " ps [-L]");
+ " ps -L");
exit(1);
}