1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

the usage message should start with "usage:";

no need for "users", ellipsis allows various users to be specified;
synchronize synopsis and usage

ok jmc@
This commit is contained in:
sobrado 2007-11-17 15:08:57 +00:00
parent af9acf648d
commit 0d5c87f961
2 changed files with 8 additions and 9 deletions

View File

@ -1,4 +1,4 @@
.\" $OpenBSD: ac.8,v 1.18 2007/05/31 19:20:21 jmc Exp $
.\" $OpenBSD: ac.8,v 1.19 2007/11/17 15:08:57 sobrado Exp $
.\"
.\" Copyright (c) 1994 Simon J. Gerraty
.\" Copyright (c) 1994 Christopher G. Demetriou
@ -29,7 +29,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd $Mdocdate: May 31 2007 $
.Dd $Mdocdate: November 17 2007 $
.Dt AC 8
.Os
.Sh NAME
@ -41,7 +41,7 @@
.\".Op Fl c Ar console
.Op Fl t Ar tty
.Op Fl w Ar wtmp
.Op Ar users ...
.Op Ar user ...
.Sh DESCRIPTION
If the file
.Pa /var/log/wtmp
@ -88,7 +88,7 @@ Read connect time data from
.Ar wtmp
instead of the default file,
.Pa /var/log/wtmp .
.It Ar users ...
.It Ar user ...
Display totals for the given individuals only.
.El
.Pp

View File

@ -14,7 +14,7 @@
*/
#ifndef lint
static const char rcsid[] = "$OpenBSD: ac.c,v 1.18 2006/04/03 21:32:38 dhill Exp $";
static const char rcsid[] = "$OpenBSD: ac.c,v 1.19 2007/11/17 15:08:57 sobrado Exp $";
#endif
#include <sys/types.h>
@ -528,13 +528,12 @@ void
usage(void)
{
extern char *__progname;
(void)fprintf(stderr,
(void)fprintf(stderr, "usage: "
#ifdef CONSOLE_TTY
"%s [-d | -p] [-c console] [-t tty] [-w wtmp] [users ...]\n",
"%s [-dp] [-c console] [-t tty] [-w wtmp] [user ...]\n",
__progname);
#else
"%s [-d | -p] [-t tty] [-w wtmp] [users ...]\n",
__progname);
"%s [-dp] [-t tty] [-w wtmp] [user ...]\n", __progname);
#endif
exit(1);
}