Sync manpage's synopsis with usage().

This commit is contained in:
Ruslan Ermilov 2004-03-30 07:37:04 +00:00
parent c9b8d77d80
commit 9137d52af5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127610
2 changed files with 5 additions and 3 deletions

View File

@ -36,8 +36,7 @@
.Nd get information about disk device
.Sh SYNOPSIS
.Nm
.Op Fl v
.Op Fl t
.Op Fl tv
.Ar disk ...
.Sh DESCRIPTION
The

View File

@ -41,7 +41,7 @@
static void
usage(void)
{
fprintf(stderr, "Usage: diskinfo [-tv]\n");
fprintf(stderr, "usage: diskinfo [-tv] disk ...\n");
exit (1);
}
@ -73,6 +73,9 @@ main(int argc, char **argv)
argc -= optind;
argv += optind;
if (argc < 1)
usage();
for (i = 0; i < argc; i++) {
fd = open(argv[i], O_RDONLY);
if (fd < 0 && errno == ENOENT && *argv[i] != '/') {