diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2004-03-02 20:49:42 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2004-03-02 20:49:42 +0000 |
commit | ed0f10904a7c205e1c47cbe0d9c69628ef4e84ae (patch) | |
tree | cc3d631099a16c2fd19f423762dc24b8a3dc14d1 /usr.bin/nfsstat/nfsstat.c | |
parent | b10a875e63ac2e6f30e812f0049a3213d7ecacce (diff) |
pretty usage and sort options. started by Andrey Matveev
Diffstat (limited to 'usr.bin/nfsstat/nfsstat.c')
-rw-r--r-- | usr.bin/nfsstat/nfsstat.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/nfsstat/nfsstat.c b/usr.bin/nfsstat/nfsstat.c index 24de2bfc461..43329b78988 100644 --- a/usr.bin/nfsstat/nfsstat.c +++ b/usr.bin/nfsstat/nfsstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfsstat.c,v 1.21 2003/07/07 21:36:52 deraadt Exp $ */ +/* $OpenBSD: nfsstat.c,v 1.22 2004/03/02 20:49:41 tedu Exp $ */ /* $NetBSD: nfsstat.c,v 1.7 1996/03/03 17:21:30 thorpej Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = static char sccsid[] = "from: @(#)nfsstat.c 8.1 (Berkeley) 6/6/93"; static char *rcsid = "$NetBSD: nfsstat.c,v 1.7 1996/03/03 17:21:30 thorpej Exp $"; #else -static char *rcsid = "$OpenBSD: nfsstat.c,v 1.21 2003/07/07 21:36:52 deraadt Exp $"; +static char *rcsid = "$OpenBSD: nfsstat.c,v 1.22 2004/03/02 20:49:41 tedu Exp $"; #endif #endif /* not lint */ @@ -101,7 +101,7 @@ main(int argc, char *argv[]) interval = 0; memf = nlistf = NULL; - while ((ch = getopt(argc, argv, "M:N:w:sc")) != -1) + while ((ch = getopt(argc, argv, "cM:N:sw:")) != -1) switch(ch) { case 'M': memf = optarg; @@ -418,8 +418,9 @@ void usage(void) { extern char *__progname; + fprintf(stderr, - "usage: %s [-M core] [-N system] [-s] [-c] [-w interval]\n", + "usage: %s [-cs] [-M core] [-N system] [-w interval]\n", __progname); exit(1); } |