summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcs.c
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-01-13 20:50:58 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-01-13 20:50:58 +0000
commit717b2514543fdb03122fd44354cbd2548342e393 (patch)
treec49431b6ca0c985722c2ca26b8d9b7e90e5aef70 /usr.bin/cvs/rcs.c
parent6f1ba4daf628e25dbd5990b24fc10035d5fd18e9 (diff)
add rcs_kflag_usage() to display the various keyword expansion modes
supported by the -k argument
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-rw-r--r--usr.bin/cvs/rcs.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index 6512bf28b2d..0b88e25ca60 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.20 2005/01/12 19:23:27 jfb Exp $ */
+/* $OpenBSD: rcs.c,v 1.21 2005/01/13 20:50:57 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -750,6 +750,18 @@ rcs_kflag_get(const char *flags)
return (fl);
}
+void
+rcs_kflag_usage(void)
+{
+ fprintf(stderr, "Valid expansion modes include:\n"
+ "\t-kkv\t\tGenerate keywords using the default form.\n"
+ "\t-kkvl\t\tLike -kkv, except locker's name inserted.\n"
+ "\t-kk\t\tGenerate only keyword names in keyword strings.\n"
+ "\t-kv\t\tGenerate only keyword values in keyword strings.\n"
+ "\t-ko\t\tGenerate the old keyword string "
+ "(no changes from checked in file).\n"
+ "\t-kb\t\tGenerate binary file unmodified (merges not allowed).\n");
+}
/*
* rcs_parse()