summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/cvs.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs/cvs.c')
-rw-r--r--usr.bin/cvs/cvs.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/usr.bin/cvs/cvs.c b/usr.bin/cvs/cvs.c
index d246c11467b..9b9edf26404 100644
--- a/usr.bin/cvs/cvs.c
+++ b/usr.bin/cvs/cvs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cvs.c,v 1.59 2005/04/22 15:06:28 xsa Exp $ */
+/* $OpenBSD: cvs.c,v 1.60 2005/04/25 17:59:16 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -123,8 +123,8 @@ struct cvs_cmd cvs_cdt[] = {
},
{
CVS_OP_DIFF, "diff", { "di", "dif" }, &cvs_diff,
- "[-cilNpu] [-D date] [-r rev] ...",
- "cD:ilNpr:Ru",
+ "[-cilNpRu] [-D date] [-r rev] ...",
+ "cD:ilNpRr:u",
"Show differences between revisions",
NULL
},
@@ -435,6 +435,12 @@ main(int argc, char **argv)
case CVS_EX_FILE:
cvs_log(LP_ABORT, "an operation on a file or directory failed");
break;
+ case CVS_EX_BADROOT:
+ cvs_log(LP_ABORT,
+ "No CVSROOT specified! Please use the `-d' option");
+ cvs_log(LP_ABORT,
+ "or set the CVSROOT enviroment variable.");
+ break;
default:
break;
}