diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-03-02 19:14:11 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-03-02 19:14:11 +0000 |
commit | 57a49f8d0ec3ea00c272d7f1c1b71884b0a27f13 (patch) | |
tree | 428905fcdabb60f0eab49c90941b8b519190a32d /usr.bin | |
parent | 21e57644f109038267df3af8ab18fa811d50a066 (diff) |
rannotate needs at least one module as argument.
ok joris
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/annotate.c | 8 |
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; |