From 113abc6f0fd01282dfc7566d8641bc912eec9390 Mon Sep 17 00:00:00 2001 From: Jason McIntyre Date: Sun, 18 Feb 2007 23:18:00 +0000 Subject: tidy up synopsis and usage(); partly from Igor Sobrado --- usr.sbin/repquota/repquota.8 | 15 ++++----------- usr.sbin/repquota/repquota.c | 8 ++++---- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/usr.sbin/repquota/repquota.8 b/usr.sbin/repquota/repquota.8 index 41d2f7d6dcf..743f0954939 100644 --- a/usr.sbin/repquota/repquota.8 +++ b/usr.sbin/repquota/repquota.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: repquota.8,v 1.8 2003/06/12 12:59:52 jmc Exp $ +.\" $OpenBSD: repquota.8,v 1.9 2007/02/18 23:17:59 jmc Exp $ .\" .\" Copyright (c) 1983, 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,7 +31,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)repquota.8 8.1 (Berkeley) 6/6/93 -.\" $Id: repquota.8,v 1.8 2003/06/12 12:59:52 jmc Exp $ +.\" $Id: repquota.8,v 1.9 2007/02/18 23:17:59 jmc Exp $ .\" .Dd June 6, 1993 .Dt REPQUOTA 8 @@ -41,15 +41,8 @@ .Nd summarize quotas for a file system .Sh SYNOPSIS .Nm repquota -.Op Fl g -.Op Fl u -.Op Fl v -.Ar filesystem Op Ar ... -.Nm repquota -.Op Fl g -.Op Fl u -.Op Fl v -.Fl a +.Op Fl aguv +.Ar filesystem ... .Sh DESCRIPTION .Nm prints a summary of the disk usage and quotas for the diff --git a/usr.sbin/repquota/repquota.c b/usr.sbin/repquota/repquota.c index fe5f597ed79..d7caf77e822 100644 --- a/usr.sbin/repquota/repquota.c +++ b/usr.sbin/repquota/repquota.c @@ -38,7 +38,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)repquota.c 8.1 (Berkeley) 6/6/93";*/ -static char *rcsid = "$Id: repquota.c,v 1.27 2005/04/03 19:02:30 otto Exp $"; +static char *rcsid = "$Id: repquota.c,v 1.28 2007/02/18 23:17:59 jmc Exp $"; #endif /* not lint */ /* @@ -164,9 +164,9 @@ main(int argc, char *argv[]) void usage(void) { - fprintf(stderr, "Usage:\n\t%s\n\t%s\n", - "repquota [-v] [-g] [-u] -a", - "repquota [-v] [-g] [-u] filesys ..."); + extern char *__progname; + fprintf(stderr, "usage: repquota [-aguv] filesystem ...\n", + __progname); exit(1); } -- cgit v1.2.3