1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

(main): Don't require that there be input files if -i switches were given.

This commit is contained in:
Roland McGrath 1993-05-13 03:00:51 +00:00
parent 8b4cc189e3
commit 0e5ad25f6b

View 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);
}