summaryrefslogtreecommitdiff
path: root/usr.bin/time
diff options
context:
space:
mode:
authorIgor Sobrado <sobrado@cvs.openbsd.org>2009-07-14 17:24:09 +0000
committerIgor Sobrado <sobrado@cvs.openbsd.org>2009-07-14 17:24:09 +0000
commitc0ec3c8c83c8100409c20bda69119b9f83f25730 (patch)
treec3d89f297707d7b5f521fb0009ca1cda0e793a16 /usr.bin/time
parent7c18c3969b26c6c83ff4bb65df6c56c2dd624bea (diff)
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@
Diffstat (limited to 'usr.bin/time')
-rw-r--r--usr.bin/time/time.112
-rw-r--r--usr.bin/time/time.c7
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);
}