- if (strncmp(argv[i], "--write-batch=", 14) == 0) {
- write(fd, "--read-batch=", 13);
- write(fd, batch_prefix, strlen(batch_prefix));
+ if (strncmp(argv[i], "--write-batch", 13) == 0) {
+ write(fd, "--read", 6);
+ write(fd, argv[i] + 7, strlen(argv[i] + 7));