git: 19677c0da80f - stable/13 - ps: Fix synopsis

From: Mateusz Piotrowski <0mp_at_FreeBSD.org>
Date: Mon, 05 Jun 2023 10:58:00 UTC
The branch stable/13 has been updated by 0mp:

URL: https://cgit.FreeBSD.org/src/commit/?id=19677c0da80fe687e438489f7074ca1670c83952

commit 19677c0da80fe687e438489f7074ca1670c83952
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2023-04-25 11:38:10 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2023-06-05 10:57:13 +0000

    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)
---
 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 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);
 }