void usage()
{
// The help text comes from mlocate.
- printf("Usage: slocate [OPTION]... PATTERN...\n");
+ printf("Usage: plocate [OPTION]... PATTERN...\n");
printf(" -d, --database DBPATH use DBPATH instead of default database (which is\n");
printf(" %s)\n", dbpath);
printf(" -h, --help print this help\n");
needles.push_back(argv[i]);
}
if (needles.empty()) {
- fprintf(stderr, "slocate: no pattern to search for specified\n");
+ fprintf(stderr, "plocate: no pattern to search for specified\n");
exit(0);
}
do_search_file(needles, dbpath);