diff options
author | 2008-03-02 19:14:10 +0000 | |
---|---|---|
committer | 2008-03-02 19:14:10 +0000 | |
commit | 5238b68ed9683a90948a6afc86ff622d8c65643f (patch) | |
tree | c8821d4860379319d0ce1d387ed2c8cab5042497 /usr.bin/cvs/annotate.c | |
parent | Print the right synopsis for commands on error (especially if commands (diff) | |
download | wireguard-openbsd-5238b68ed9683a90948a6afc86ff622d8c65643f.tar.xz wireguard-openbsd-5238b68ed9683a90948a6afc86ff622d8c65643f.zip |
rannotate needs at least one module as argument.
ok joris
Diffstat (limited to 'usr.bin/cvs/annotate.c')
-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; |