diff options
-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': |