git: 0ee3e29e1d9e - main - sysctl: Fix usage() and SYNOPSIS section of man page

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Thu, 23 Jan 2025 07:26:26 UTC
The branch main has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=0ee3e29e1d9ee3ed22441c0d580d2d1e57a1d9e3

commit 0ee3e29e1d9ee3ed22441c0d580d2d1e57a1d9e3
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2025-01-23 07:24:15 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2025-01-23 07:24:15 +0000

    sysctl: Fix usage() and SYNOPSIS section of man page
    
    I forgot to update the usage() and SYNOPSIS section of man page when
    adding the two options -J and -V.
    
    While here, fix the options sort order in SYNOPSIS section.
    
    Fixes:  5ec83c660aca sysctl: Add flags to filter jail prison and vnet variables
    MFC after:      1 day
---
 sbin/sysctl/sysctl.8 | 6 +++---
 sbin/sysctl/sysctl.c | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/sbin/sysctl/sysctl.8 b/sbin/sysctl/sysctl.8
index 792ebf6c4e9d..8cffb180ca67 100644
--- a/sbin/sysctl/sysctl.8
+++ b/sbin/sysctl/sysctl.8
@@ -28,7 +28,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd October 29, 2024
+.Dd January 23, 2025
 .Dt SYSCTL 8
 .Os
 .Sh NAME
@@ -36,13 +36,13 @@
 .Nd get or set kernel state
 .Sh SYNOPSIS
 .Nm
-.Op Fl bdeFhilNnoTtqWx
+.Op Fl bdeFhiJlNnoqTtVWx
 .Op Fl B Ar bufsize
 .Op Fl f Ar filename
 .Ar name Ns Op = Ns Ar value Ns Op , Ns Ar value
 .Ar ...
 .Nm
-.Op Fl bdeFhlNnoTtqWx
+.Op Fl bdeFhJlNnoqTtVWx
 .Op Fl B Ar bufsize
 .Fl a
 .Sh DESCRIPTION
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c
index 1a9cb0a13254..ef5d0508e5c3 100644
--- a/sbin/sysctl/sysctl.c
+++ b/sbin/sysctl/sysctl.c
@@ -121,8 +121,8 @@ usage(void)
 {
 
 	(void)fprintf(stderr, "%s\n%s\n",
-	    "usage: sysctl [-bdeFhilNnoqTtWx] [ -B <bufsize> ] [-f filename] name[=value] ...",
-	    "       sysctl [-bdeFhlNnoqTtWx] [ -B <bufsize> ] -a");
+	    "usage: sysctl [-bdeFhiJlNnoqTtVWx] [ -B <bufsize> ] [-f filename] name[=value] ...",
+	    "       sysctl [-bdeFhJlNnoqTtVWx] [ -B <bufsize> ] -a");
 	exit(1);
 }