synchronize_flags = notmuch_config_get_maildir_synchronize_flags (config);
notmuch_opt_desc_t options[] = {
- { NOTMUCH_OPT_POSITION, &input_file_name, 0, 0, 0 },
+ { NOTMUCH_OPT_STRING, &input_file_name, "input", 'i', 0 },
{ NOTMUCH_OPT_BOOLEAN, &accumulate, "accumulate", 'a', 0 },
{ 0, 0, 0, 0, 0 }
};
input_file_name, strerror (errno));
return 1;
}
- optind++;
}
if (opt_index < argc) {
fprintf (stderr,
- "Cannot read dump from more than one file: %s\n",
- argv[optind]);
+ "Unused positional parameter: %s\n",
+ argv[opt_index]);
return 1;
}