git: 3f46bf40a1b2 - main - ps: Fix synopsis
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 25 Apr 2023 15:25:53 UTC
The branch main has been updated by 0mp:
URL: https://cgit.FreeBSD.org/src/commit/?id=3f46bf40a1b26c49b53df4ec504757c5d8c9f921
commit 3f46bf40a1b26c49b53df4ec504757c5d8c9f921
Author: Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2023-04-25 11:38:10 +0000
Commit: Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2023-04-25 15:23:07 +0000
ps: Fix synopsis
In the -L mode, the -L flag is not optional.
MFC after: 3 days
Sponsored by: Klara Inc.
---
bin/ps/ps.1 | 4 ++--
bin/ps/ps.c | 2 +-
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 89d90b78f2b0..dd1335bb4eeb 100644
--- a/bin/ps/ps.c
+++ b/bin/ps/ps.c
@@ -1462,6 +1462,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);
}