- /* argv[(optind)..(argc-1)] should be names of file to process. If no
- * files were specified or '-' was specified, take input from stdin.
- * Otherwise, we process all the files specified. */
- if (argv[optind] == NULL
- || (argv[optind][0] == '-' && argv[optind][1] == '\0')) {
- cut_file(stdin);
- } else {
- FILE *file;
-
- for (; optind < argc; optind++) {
- file = fopen_or_warn(argv[optind], "r");
- if (file) {
- cut_file(file);
- fclose(file);