summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-01-24 18:48:24 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-01-24 18:48:24 +0000
commit1f590526c32653471862fccdd841c04176ad0245 (patch)
tree8dfb93b6d58b9e6c463b0a77b624bf9a3d73fa88 /usr.bin
parentec6cdc8f0b6e3fc83b429f1557ee81783492b6e1 (diff)
sync usage of some of the commands, and start filling the cmd_opts
field, which will later be used as the argument to getopt() instead of hardcoding the option strings. This will allow us to use the same handler for commands which have a local and remote version (i.e. rdiff, rlog, rtag)
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/cvs.c28
1 files changed, 15 insertions, 13 deletions
diff --git a/usr.bin/cvs/cvs.c b/usr.bin/cvs/cvs.c
index 1f0265d22fb..7c69bbc2c4d 100644
--- a/usr.bin/cvs/cvs.c
+++ b/usr.bin/cvs/cvs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cvs.c,v 1.37 2005/01/24 17:42:26 jfb Exp $ */
+/* $OpenBSD: cvs.c,v 1.38 2005/01/24 18:48:23 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -110,15 +110,16 @@ static struct cvs_cmd {
},
{
CVS_OP_ANNOTATE, "annotate", { "ann" }, cvs_annotate,
- "[-flR] [-D date | -r rev] file ...",
- "",
+ "[-flR] [-D date | -r rev] ...",
+ "D:flRr:",
"Show last revision where each line was modified",
NULL,
},
{
CVS_OP_CHECKOUT, "checkout", { "co", "get" }, cvs_checkout,
- "",
- "",
+ "[-AcflNnPpRs] [-D date | -r rev] [-d dir] [-j rev] [-k kopt] "
+ "[-t id] module ...",
+ "AcD:d:fj:k:lNnPRr:st:",
"Checkout sources for editing",
NULL,
},
@@ -190,7 +191,7 @@ static struct cvs_cmd {
#endif
{
CVS_OP_LOG, "log", { "lo" }, cvs_getlog,
- "",
+ "[-bhlNRt] [-d dates] [-r revisions] [-s states] [-w logins]",
"",
"Print out history information for files",
NULL,
@@ -218,15 +219,15 @@ static struct cvs_cmd {
},
{
CVS_OP_RELEASE, "release", {}, NULL,
- "",
- "",
+ "[-d]",
+ "d",
"Indicate that a Module is no longer in use",
NULL,
},
{
CVS_OP_REMOVE, "remove", { "rm", "delete" }, cvs_remove,
"[-flR] file ...",
- "",
+ "flR",
"Remove an entry from the repository",
NULL,
},
@@ -254,14 +255,14 @@ static struct cvs_cmd {
{
CVS_OP_STATUS, "status", { "st", "stat" }, cvs_status,
"[-lRv]",
- "",
+ "lRv",
"Display status information on checked out files",
NULL,
},
{
CVS_OP_TAG, "tag", { "ta", "freeze" }, cvs_tag,
- "[-bdl] [-D date | -r rev] tagname",
- "",
+ "[-bcdFflR] [-D date | -r rev] tagname",
+ "bcD:dFflRr:",
"Add a symbolic tag to checked out version of files",
NULL,
},
@@ -274,7 +275,8 @@ static struct cvs_cmd {
},
{
CVS_OP_UPDATE, "update", { "up", "upd" }, cvs_update,
- "",
+ "[-ACdflPpR] [-D date | -r rev] [-I ign] [-j rev] [-k kopt] "
+ "[-t id] ...",
"",
"Bring work tree in sync with repository",
NULL,