diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-04-21 14:42:13 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-04-21 14:42:13 +0000 |
commit | 2417edddb9a23f2f3ddc9c56a51cbe8fc8a488ce (patch) | |
tree | 8f0934d4ad49e0ae7519ec4dec22d0ecfa201ab6 /usr.bin/rcs | |
parent | 86ca2919d351c05fada03add61b120b8b760dd14 (diff) |
match former rcs implementation warning message if no options are
specified when using rcs(1). OK ray@ joris@.
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r-- | usr.bin/rcs/rcsprog.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c index 9e3dda61574..dd02a1f7fb0 100644 --- a/usr.bin/rcs/rcsprog.c +++ b/usr.bin/rcs/rcsprog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsprog.c,v 1.110 2006/04/21 14:18:26 xsa Exp $ */ +/* $OpenBSD: rcsprog.c,v 1.111 2006/04/21 14:42:12 xsa Exp $ */ /* * Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -502,6 +502,11 @@ rcs_main(int argc, char **argv) lrev = urev = descfile = nflag = NULL; logstr = alist = comment = elist = orange = NULL; + /* match GNU */ + if (1 < argc && argv[1][0] != '-') + warnx("warning: No options were given; " + "this usage is obsolescent."); + while ((ch = rcs_getopt(argc, argv, RCSPROG_OPTSTRING)) != -1) { switch (ch) { case 'A': |