From 2417edddb9a23f2f3ddc9c56a51cbe8fc8a488ce Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Fri, 21 Apr 2006 14:42:13 +0000 Subject: match former rcs implementation warning message if no options are specified when using rcs(1). OK ray@ joris@. --- usr.bin/rcs/rcsprog.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'usr.bin/rcs') 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 * 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': -- cgit v1.2.3