Make it obvious that command line arguments may be specified for the utility

that is to be invoked on the command line. Use "utility" instead of "command"
in manual page and usage message for consistency with POSIX.
This commit is contained in:
Tim J. Robbins 2002-06-20 07:07:00 +00:00
parent 0d9d1e7875
commit 3f6c6c912f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98476
2 changed files with 11 additions and 10 deletions

View File

@ -43,27 +43,27 @@
.Op Fl al
.Op Fl h | Fl p
.Op Fl o Ar file
.Ar command
.Ar utility Op Ar argument ...
.Sh DESCRIPTION
The
.Nm
utility
executes and
times
.Ar command
.Ar utility
by initiating a timer and passing the
.Ar command
.Ar utility
to the
shell.
After the
.Ar command
.Ar utility
finishes,
.Nm
writes to the standard error stream,
(in seconds):
the total time elapsed,
the time used to execute the
.Ar command
.Ar utility
process and the time consumed by system overhead.
.Pp
Available options:
@ -103,16 +103,16 @@ Consult the
manual page.
.Sh DIAGNOSTICS
If
.Ar command
.Ar utility
could be timed successfully, its exit status is returned.
If
.Ar command
.Ar utility
terminated abnormally, a warning message is output to stderr.
If the
.Ar command
.Ar utility
was found but could not be run, the exit status is 126.
If no
.Ar command
.Ar utility
could be found at all, the exit status is 127.
If
.Nm

View File

@ -225,7 +225,8 @@ main(argc, argv)
static void
usage()
{
fprintf(stderr, "usage: time [-al] [-h|-p] [-o file] command\n");
fprintf(stderr,
"usage: time [-al] [-h|-p] [-o file] utility [argument ...]\n");
exit(1);
}