(main): Don't require that there be input files if -i switches were given.
authorRoland McGrath <roland@gnu.org>
Thu, 13 May 1993 03:00:51 +0000 (03:00 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 13 May 1993 03:00:51 +0000 (03:00 +0000)
lib-src/etags.c

index 95e2358..e3584f8 100644 (file)
@@ -658,12 +658,12 @@ main (argc, argv)
        }
     }
 
-  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);
     }