summaryrefslogtreecommitdiffstats
path: root/bin/ps
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-02-09 17:37:39 +0000
committerru <ru@FreeBSD.org>2005-02-09 17:37:39 +0000
commit978b8f7f1d9acca15190b3e1c3c13206ae9ff3be (patch)
treef2459cf124e940897222cf3c2d1d840dc7a981a5 /bin/ps
parentecbdad392c9834599fff9cd2683900672354f4c0 (diff)
downloadFreeBSD-src-978b8f7f1d9acca15190b3e1c3c13206ae9ff3be.zip
FreeBSD-src-978b8f7f1d9acca15190b3e1c3c13206ae9ff3be.tar.gz
Sync program's usage() with manpage's SYNOPSIS.
Diffstat (limited to 'bin/ps')
-rw-r--r--bin/ps/ps.15
-rw-r--r--bin/ps/ps.c6
2 files changed, 5 insertions, 6 deletions
diff --git a/bin/ps/ps.1 b/bin/ps/ps.1
index bcd85e6..0dcb546 100644
--- a/bin/ps/ps.1
+++ b/bin/ps/ps.1
@@ -38,14 +38,13 @@
.Sh SYNOPSIS
.Nm
.Op Fl aCcefHhjlmrSTuvwXxZ
+.Op Fl O Ar fmt | Fl o Ar fmt
.Op Fl G Ar gid Ns Op , Ns Ar gid Ns Ar ...
.Op Fl M Ar core
.Op Fl N Ar system
-.Op Fl O Ar fmt
-.Op Fl o Ar fmt
.Op Fl p Ar pid Ns Op , Ns Ar pid Ns Ar ...
.Op Fl t Ar tty Ns Op , Ns Ar tty Ns Ar ...
-.Op Fl U Ar username Ns Op , Ns Ar username Ns Ar ...
+.Op Fl U Ar user Ns Op , Ns Ar user Ns Ar ...
.Nm
.Op Fl L
.Sh DESCRIPTION
diff --git a/bin/ps/ps.c b/bin/ps/ps.c
index 2bedc17..73a6121 100644
--- a/bin/ps/ps.c
+++ b/bin/ps/ps.c
@@ -1191,12 +1191,12 @@ check_procfs(void)
static void
usage(void)
{
-#define SINGLE_OPTS "[-aCc" OPT_LAZY_f "HhjlmrSTuvwXxZ]"
+#define SINGLE_OPTS "[-aCce" OPT_LAZY_f "HhjlmrSTuvwXxZ]"
(void)fprintf(stderr, "%s\n%s\n%s\n%s\n",
- "usage: ps " SINGLE_OPTS " [-G gid[,gid]] [-O|o fmt]",
- " [-p pid[,pid]] [-t tty[,tty]] [-U user[,user]]",
+ "usage: ps " SINGLE_OPTS " [-O fmt | -o fmt] [-G gid[,gid...]]",
" [-M core] [-N system]",
+ " [-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]",
" ps [-L]");
exit(1);
}
OpenPOWER on IntegriCloud