summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/annotate.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs/annotate.c')
-rw-r--r--usr.bin/cvs/annotate.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/cvs/annotate.c b/usr.bin/cvs/annotate.c
index 129eda59c18..8c21e7c73f3 100644
--- a/usr.bin/cvs/annotate.c
+++ b/usr.bin/cvs/annotate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: annotate.c,v 1.56 2008/03/02 19:05:34 tobias Exp $ */
+/* $OpenBSD: annotate.c,v 1.57 2008/03/02 19:14:10 tobias Exp $ */
/*
* Copyright (c) 2007 Tobias Stoeckmann <tobias@openbsd.org>
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -93,8 +93,12 @@ cvs_annotate(int argc, char **argv)
argc -= optind;
argv += optind;
- if (cvs_cmdop == CVS_OP_RANNOTATE)
+ if (cvs_cmdop == CVS_OP_RANNOTATE) {
+ if (argc == 0)
+ fatal("%s", cvs_cmd_rannotate.cmd_synopsis);
+
flags |= CR_REPO;
+ }
cr.enterdir = NULL;
cr.leavedir = NULL;