X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=scandir.cc;h=3634b59e7d57ae0b83397299e04dd77b41b86f94;hb=58a0d3f8749111c15e9afa9d929016d65ed32250;hp=52c82f8104702bd16d7025e937c5ece5f26fd451;hpb=493fc700aa266855cc0dcbf8002424565ff7486b;p=cumulus.git diff --git a/scandir.cc b/scandir.cc index 52c82f8..3634b59 100644 --- a/scandir.cc +++ b/scandir.cc @@ -403,8 +403,10 @@ int main(int argc, char *argv[]) while (1) { static struct option long_options[] = { - {"localdb", 1, 0, 0}, // 0 - {"exclude", 1, 0, 0}, // 1 + {"localdb", 1, 0, 0}, // 0 + {"exclude", 1, 0, 0}, // 1 + {"filter", 1, 0, 0}, // 2 + {"filter-extension", 1, 0, 0}, // 3 {NULL, 0, 0, 0}, }; @@ -422,6 +424,12 @@ int main(int argc, char *argv[]) case 1: // --exclude excludes.push_back(optarg); break; + case 2: // --filter + filter_program = optarg; + break; + case 3: // --filter-extension + filter_extension = optarg; + break; default: fprintf(stderr, "Unhandled long option!\n"); return 1;