diff options
author | ru <ru@FreeBSD.org> | 2005-02-09 17:37:39 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-02-09 17:37:39 +0000 |
commit | 978b8f7f1d9acca15190b3e1c3c13206ae9ff3be (patch) | |
tree | f2459cf124e940897222cf3c2d1d840dc7a981a5 /bin/ps | |
parent | ecbdad392c9834599fff9cd2683900672354f4c0 (diff) | |
download | FreeBSD-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.1 | 5 | ||||
-rw-r--r-- | bin/ps/ps.c | 6 |
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); } |