diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-04-21 20:56:13 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-04-21 20:56:13 +0000 |
commit | c228e010df54347654e61f2da2a24890b5370393 (patch) | |
tree | 50121d5c98501aa53e37e899dbebc1b78cda6c53 | |
parent | d416f9cf49cf12282f57475762b7d13b7cdc5da3 (diff) |
let the `cvs remove' command work with no file(s) specified as args;
joris ok
-rw-r--r-- | usr.bin/cvs/cvs.c | 4 | ||||
-rw-r--r-- | usr.bin/cvs/remove.c | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/cvs/cvs.c b/usr.bin/cvs/cvs.c index f1e9ef95f45..bc83c2e2384 100644 --- a/usr.bin/cvs/cvs.c +++ b/usr.bin/cvs/cvs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cvs.c,v 1.56 2005/04/21 04:37:11 jfb Exp $ */ +/* $OpenBSD: cvs.c,v 1.57 2005/04/21 20:56:12 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -217,7 +217,7 @@ struct cvs_cmd cvs_cdt[] = { }, { CVS_OP_REMOVE, "remove", { "rm", "delete" }, &cvs_remove, - "[-flR] file ...", + "[-flR] [file ...]", "flR", "Remove an entry from the repository", NULL diff --git a/usr.bin/cvs/remove.c b/usr.bin/cvs/remove.c index 54b04e2c7af..760996c1341 100644 --- a/usr.bin/cvs/remove.c +++ b/usr.bin/cvs/remove.c @@ -1,4 +1,4 @@ -/* $OpenBSD: remove.c,v 1.11 2005/04/21 19:06:06 xsa Exp $ */ +/* $OpenBSD: remove.c,v 1.12 2005/04/21 20:56:12 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * Copyright (c) 2004 Xavier Santolaria <xsa@openbsd.org> @@ -81,9 +81,6 @@ cvs_remove_options(char *opt, int argc, char **argv, int *arg) argc -= optind; argv += optind; - if (argc == 0) - return (CVS_EX_USAGE); - *arg = optind; return (0); } |