summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-10 00:03:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-10 00:03:04 +0000
commit34e21fa7427630a0fd22a30e611f27d844a36035 (patch)
treebc2eb472f0d65023ea7d7a94fa019e2485a6fa0f /sbin
parentadabfe1112ce7c3dfb5d44a5cef0bd11b87d8a27 (diff)
add usage printout
Diffstat (limited to 'sbin')
-rw-r--r--sbin/fsck_ffs/main.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/main.c b/sbin/fsck_ffs/main.c
index d5cd4107794..14facf56f69 100644
--- a/sbin/fsck_ffs/main.c
+++ b/sbin/fsck_ffs/main.c
@@ -68,6 +68,17 @@ int argtoi __P((int, char *, char *, int));
int checkfilesys __P((char *, char *, long, int));
int docheck __P((struct fstab *));
+void
+usage()
+{
+ fprintf(stderr,
+ "usage: fsck -p [-f] [-m mode]\n");
+ fprintf(stderr,
+ " fsck [-f] [-b block#] [-c level] [-l maxparallel] [-y] "
+ "[-n] [-m mode] [filesystems]\n");
+ exit(1);
+}
+
int
main(argc, argv)
int argc;
@@ -129,7 +140,7 @@ main(argc, argv)
break;
default:
- errexit("%c option?\n", ch);
+ usage();
}
}
argc -= optind;