git: 187d954eab94 - main - top: Sync usage and synopsis

From: Alexander Ziaee <ziaee_at_FreeBSD.org>
Date: Fri, 28 Mar 2025 18:03:20 UTC
The branch main has been updated by ziaee:

URL: https://cgit.FreeBSD.org/src/commit/?id=187d954eab94fdcb33609d91966dbd727acfd720

commit 187d954eab94fdcb33609d91966dbd727acfd720
Author:     Alexander Ziaee <ziaee@FreeBSD.org>
AuthorDate: 2025-03-26 04:42:51 +0000
Commit:     Alexander Ziaee <ziaee@FreeBSD.org>
CommitDate: 2025-03-28 18:00:18 +0000

    top: Sync usage and synopsis
    
    Switching between io and cpu sorting uses a great example in the usage.
    [-m io | cpu]. Use that everywhere.
    
    MFC after:              3 days
    Reviewed by:            mhorne
    Approved by:            mhorne (mentor)
    Differential Revision:  https://reviews.freebsd.org/D49515
---
 usr.bin/top/top.1 | 4 ++--
 usr.bin/top/top.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/usr.bin/top/top.1 b/usr.bin/top/top.1
index 3443df0f8c22..03f042acc744 100644
--- a/usr.bin/top/top.1
+++ b/usr.bin/top/top.1
@@ -6,10 +6,10 @@
 .Nd display and update information about the top cpu processes
 .Sh SYNOPSIS
 .Nm
-.Op Fl abCHIijnPpqSTtuvxz
+.Op Fl abCHIijnPqSTtuvwz
 .Op Fl d Ar count
 .Op Fl J Ar jail
-.Op Fl m Ar mode
+.Op Fl m Ar cpu | io
 .Op Fl o Ar field
 .Op Fl p Ar pid
 .Op Fl s Ar time
diff --git a/usr.bin/top/top.c b/usr.bin/top/top.c
index 8712e56d43ba..856ad838dc1c 100644
--- a/usr.bin/top/top.c
+++ b/usr.bin/top/top.c
@@ -463,7 +463,7 @@ main(int argc, const char *argv[])
 
 	      default:
 		errx(1, 
-"[-abCHIijnPqStuvwz] [-d count] [-J jail] [-m cpu | io] [-o field]\n"
+"[-abCHIijnPqSTtuvwz] [-d count] [-J jail] [-m cpu | io] [-o field]\n"
 "     [-p pid] [-s time] [-U username] [number]");
 	    }
 	}