summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/co.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2005-09-29 21:30:11 +0000
committerJoris Vink <joris@cvs.openbsd.org>2005-09-29 21:30:11 +0000
commit1a291f79aac038207f18b3e4a425118d8ffeb797 (patch)
tree6f9b74765299df6830c562ab50325dae9fb709e3 /usr.bin/rcs/co.c
parentbc4c07077070604da4a0ba814f8340bb2167f2ba (diff)
support -q flag in 'co' and 'rcs'
Diffstat (limited to 'usr.bin/rcs/co.c')
-rw-r--r--usr.bin/rcs/co.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/rcs/co.c b/usr.bin/rcs/co.c
index 8b66c2b6df8..e88e3106b7d 100644
--- a/usr.bin/rcs/co.c
+++ b/usr.bin/rcs/co.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: co.c,v 1.2 2005/09/29 15:21:57 joris Exp $ */
+/* $OpenBSD: co.c,v 1.3 2005/09/29 21:30:10 joris Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -48,8 +48,11 @@ checkout_main(int argc, char **argv)
char *s, fpath[MAXPATHLEN];
rev = RCS_HEAD_REV;
- while ((ch = getopt(argc, argv, "r:")) != -1) {
+ while ((ch = getopt(argc, argv, "qr:")) != -1) {
switch (ch) {
+ case 'q':
+ verbose = 0;
+ break;
case 'r':
if ((rev = rcsnum_parse(optarg)) == NULL) {
cvs_log(LP_ERR, "bad revision number");