changeset 2759:1c7b7ed1a12a

(main): Don't require that there be input files if -i switches were given.
author Roland McGrath <roland@gnu.org>
date Thu, 13 May 1993 03:00:51 +0000
parents ce6924085fc7
children 1c7595e3089b
files lib-src/etags.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/etags.c	Thu May 13 01:47:22 1993 +0000
+++ b/lib-src/etags.c	Thu May 13 03:00:51 1993 +0000
@@ -658,12 +658,12 @@
 	}
     }
 
-  if (optind == argc)
+  if (optind == argc && nincluded_files == 0)
     {
       fprintf (stderr, "%s: No input files specified.\n", progname);
 
     usage:
-      fprintf (stderr, "%s: Try '%s --help' for a complete list of options.\n",
+      fprintf (stderr, "%s: Try `%s --help' for a complete list of options.\n",
 	       progname, progname);
       exit (BAD);
     }