]> git.sesse.net Git - plocate/commitdiff
Fix typo; plocate, not slocate.
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Wed, 30 Sep 2020 22:00:04 +0000 (00:00 +0200)
committerSteinar H. Gunderson <steinar+git@gunderson.no>
Wed, 30 Sep 2020 22:00:04 +0000 (00:00 +0200)
plocate.cpp

index 87c3c1775a564acc0369d6e09f1d79230acd73e6..43cfab7da955bd62b708e3a0c30a251c74dc89f9 100644 (file)
@@ -400,7 +400,7 @@ void do_search_file(const vector<string> &needles, const char *filename)
 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");
@@ -440,7 +440,7 @@ int main(int argc, char **argv)
                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);