diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-10-05 12:06:24 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-10-05 12:06:24 +0000 |
commit | 96344a35497e7f1e33cb9083a33b7898cc826f42 (patch) | |
tree | 5e5bfa22bab26709198a925634a8bece8a1ae78d /usr.bin/rcs/co.c | |
parent | bacfda01680bf46b16b2451839c345e4ef8c132c (diff) |
sync usage and add V flag;
Diffstat (limited to 'usr.bin/rcs/co.c')
-rw-r--r-- | usr.bin/rcs/co.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/rcs/co.c b/usr.bin/rcs/co.c index 8a9d0deef6d..b0d3a81f92e 100644 --- a/usr.bin/rcs/co.c +++ b/usr.bin/rcs/co.c @@ -1,4 +1,4 @@ -/* $OpenBSD: co.c,v 1.6 2005/10/05 11:52:16 joris Exp $ */ +/* $OpenBSD: co.c,v 1.7 2005/10/05 12:06:23 joris Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -62,7 +62,7 @@ checkout_main(int argc, char **argv) exit (1); } - while ((ch = getopt(argc, argv, "l:qr:u:")) != -1) { + while ((ch = getopt(argc, argv, "l:qr:u:V")) != -1) { switch (ch) { case 'l': if (rev != RCS_HEAD_REV) @@ -102,6 +102,9 @@ checkout_main(int argc, char **argv) } break; + case 'V': + printf("%s\n", rcs_version); + exit(0); default: (usage)(); exit(1); @@ -182,5 +185,6 @@ checkout_main(int argc, char **argv) void checkout_usage(void) { - fprintf(stderr, "usage %s [-r rev] file ...\n", __progname); + fprintf(stderr, "usage %s [-qV] [-l rev] [-r rev] [-u rev] file ...\n", + __progname); } |