summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2007-02-18 23:04:57 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2007-02-18 23:04:57 +0000
commit97eff74b6627c9238b0f7f351a42e1cf5be2b1e3 (patch)
treedaec7d6c965e9e28dadfd300568980ccc269d252
parente8635340d8a01793614f858e63db0da3c72de8e4 (diff)
simplify synopsis and usage(); based on a diff from Igor Sobrado
-rw-r--r--usr.sbin/quotaon/quotaon.827
-rw-r--r--usr.sbin/quotaon/quotaon.c5
2 files changed, 8 insertions, 24 deletions
diff --git a/usr.sbin/quotaon/quotaon.8 b/usr.sbin/quotaon/quotaon.8
index 71ac113dc0c..98442326747 100644
--- a/usr.sbin/quotaon/quotaon.8
+++ b/usr.sbin/quotaon/quotaon.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: quotaon.8,v 1.6 2003/06/02 23:36:54 millert Exp $
+.\" $OpenBSD: quotaon.8,v 1.7 2007/02/18 23:04:56 jmc Exp $
.\"
.\" Copyright (c) 1983, 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)quotaon.8 8.2 (Berkeley) 12/11/93
-.\" $Id: quotaon.8,v 1.6 2003/06/02 23:36:54 millert Exp $
+.\" $Id: quotaon.8,v 1.7 2007/02/18 23:04:56 jmc Exp $
.\"
.Dd December 11, 1993
.Dt QUOTAON 8
@@ -41,26 +41,11 @@
.Nd turn filesystem quotas on and off
.Sh SYNOPSIS
.Nm quotaon
-.Op Fl g
-.Op Fl u
-.Op Fl v
-.Ar filesystem Op Ar ...
-.Nm quotaon
-.Op Fl g
-.Op Fl u
-.Op Fl v
-.Fl a
-.Pp
+.Op Fl aguv
+.Ar filesystem ...
.Nm quotaoff
-.Op Fl g
-.Op Fl u
-.Op Fl v
-.Ar filesystem Op Ar ...
-.Nm quotaoff
-.Op Fl g
-.Op Fl u
-.Op Fl v
-.Fl a
+.Op Fl aguv
+.Ar filesystem ...
.Sh DESCRIPTION
.Nm quotaon
announces to the system that disk quotas should be enabled on one or more
diff --git a/usr.sbin/quotaon/quotaon.c b/usr.sbin/quotaon/quotaon.c
index 31707b9388d..5c08a047057 100644
--- a/usr.sbin/quotaon/quotaon.c
+++ b/usr.sbin/quotaon/quotaon.c
@@ -38,7 +38,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)quotaon.c 8.1 (Berkeley) 6/6/93";*/
-static char *rcsid = "$Id: quotaon.c,v 1.21 2006/05/14 17:10:41 dhill Exp $";
+static char *rcsid = "$Id: quotaon.c,v 1.22 2007/02/18 23:04:56 jmc Exp $";
#endif /* not lint */
/*
@@ -147,8 +147,7 @@ main(int argc, char *argv[])
usage(char *whoami)
{
- fprintf(stderr, "Usage:\n\t%s [-g] [-u] [-v] -a\n", whoami);
- fprintf(stderr, "\t%s [-g] [-u] [-v] filesys ...\n", whoami);
+ fprintf(stderr, "usage: %s [-aguv] filesystem ...\n", whoami);
exit(1);
}