diff options
author | 2006-04-21 14:42:12 +0000 | |
---|---|---|
committer | 2006-04-21 14:42:12 +0000 | |
commit | 7aea8f3dc407dc8be6e1c0df2f117ca52adc5930 (patch) | |
tree | 4f5a10538a374b53a79aa6a3592123b5b0c3e8a6 | |
parent | remove overkill cvs_log() and rather use warn()/warnx(). (diff) | |
download | wireguard-openbsd-7aea8f3dc407dc8be6e1c0df2f117ca52adc5930.tar.xz wireguard-openbsd-7aea8f3dc407dc8be6e1c0df2f117ca52adc5930.zip |
match former rcs implementation warning message if no options are
specified when using rcs(1). OK ray@ joris@.
-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': |