(main): Don't require that there be input files if -i switches were given.
[bpt/emacs.git] / 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);
     }