]> git.sesse.net Git - plocate/commitdiff
Add ignored -A / --all parameter, for better mlocate compatibility.
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Fri, 12 Nov 2021 19:14:00 +0000 (20:14 +0100)
committerSteinar H. Gunderson <steinar+git@gunderson.no>
Fri, 12 Nov 2021 19:14:00 +0000 (20:14 +0100)
plocate.1
plocate.cpp

index 3d02f2f606380489a23ffd108163dd0b767bd66f..53354dca5d2bc18fbb9f69f282ebb8249dc9f293 100644 (file)
--- a/plocate.1
+++ b/plocate.1
@@ -58,6 +58,11 @@ bit set to access the index (which is built as root), but by
 testing visibility as the calling user.
 
 .SH OPTIONS
+.TP
+\fB\-A\fR, \fB\-\-all\fR
+Ignored for compatibility with
+.BR mlocate (1).
+
 .TP
 \fB\-b\fR, \fB\-\-basename\fR
 Match only against the file name portion of the path name,
index 6b8b3d8dcad564ba335ba957864363cec8ddf4ab..a1cd97a4a4645c08880b014d4799f9d4c33182f6 100644 (file)
@@ -837,6 +837,7 @@ int main(int argc, char **argv)
        static const struct option long_options[] = {
                { "help", no_argument, 0, 'h' },
                { "count", no_argument, 0, 'c' },
+               { "all", no_argument, 0, 'A' },
                { "basename", no_argument, 0, 'b' },
                { "database", required_argument, 0, 'd' },
                { "existing", no_argument, 0, 'e' },
@@ -857,11 +858,14 @@ int main(int argc, char **argv)
        setlocale(LC_ALL, "");
        for (;;) {
                int option_index = 0;
-               int c = getopt_long(argc, argv, "bcd:ehil:n:N0rwVD", long_options, &option_index);
+               int c = getopt_long(argc, argv, "Abcd:ehil:n:N0rwVD", long_options, &option_index);
                if (c == -1) {
                        break;
                }
                switch (c) {
+               case 'A':
+                       // Ignored.
+                       break;
                case 'b':
                        match_basename = true;
                        break;