diff options
author | 2009-07-14 17:24:08 +0000 | |
---|---|---|
committer | 2009-07-14 17:24:08 +0000 | |
commit | e18e7f2c907da177e6b6a08e9e537441834c8cb0 (patch) | |
tree | e24fdd648775695f0193a4b9360e61d5902d5079 | |
parent | mention display.brightness explicitly; (diff) | |
download | wireguard-openbsd-e18e7f2c907da177e6b6a08e9e537441834c8cb0.tar.xz wireguard-openbsd-e18e7f2c907da177e6b6a08e9e537441834c8cb0.zip |
unveil that time(1) accepts optional arguments for the utility operand,
this way we not only improve the synopsis accuracy but also match
descriptions provided by IEEE Std 1003.1-2008, FreeBSD and NetBSD
for this command; while here, synchronize the operand name.
description for the optional arguments proposed by jmc@
ok jmc@
-rw-r--r-- | usr.bin/time/time.1 | 12 | ||||
-rw-r--r-- | usr.bin/time/time.c | 7 |
2 files changed, 11 insertions, 8 deletions
diff --git a/usr.bin/time/time.1 b/usr.bin/time/time.1 index 1db9311b73e..94f7a7114ae 100644 --- a/usr.bin/time/time.1 +++ b/usr.bin/time/time.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: time.1,v 1.18 2009/02/08 17:15:10 jmc Exp $ +.\" $OpenBSD: time.1,v 1.19 2009/07/14 17:24:08 sobrado Exp $ .\" $NetBSD: time.1,v 1.5 1994/12/08 09:36:57 jtc Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)time.1 8.1 (Berkeley) 6/6/93 .\" -.Dd $Mdocdate: February 8 2009 $ +.Dd $Mdocdate: July 14 2009 $ .Dt TIME 1 .Os .Sh NAME @@ -40,11 +40,13 @@ .Nm time .Op Fl lp .Ar utility +.Op Ar argument ... .Sh DESCRIPTION .Nm -executes and -times -.Ar utility . +executes and times +.Ar utility +with optional +.Ar arguments . After the .Ar utility finishes, diff --git a/usr.bin/time/time.c b/usr.bin/time/time.c index aa60c59330e..353fbd319ce 100644 --- a/usr.bin/time/time.c +++ b/usr.bin/time/time.c @@ -1,4 +1,4 @@ -/* $OpenBSD: time.c,v 1.16 2006/05/17 13:31:22 grunk Exp $ */ +/* $OpenBSD: time.c,v 1.17 2009/07/14 17:24:08 sobrado Exp $ */ /* $NetBSD: time.c,v 1.7 1995/06/27 00:34:00 jtc Exp $ */ /* @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)time.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: time.c,v 1.16 2006/05/17 13:31:22 grunk Exp $"; +static char rcsid[] = "$OpenBSD: time.c,v 1.17 2009/07/14 17:24:08 sobrado Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -195,6 +195,7 @@ usage(void) { extern char *__progname; - (void)fprintf(stderr, "usage: %s [-lp] command\n", __progname); + (void)fprintf(stderr, "usage: %s [-lp] utility [argument ...]\n", + __progname); exit(1); } |