struct file_with_size *node1, *node2;
int not_in, found;
- if(dirname2[0] == '^') {
+ if(strncmp(dirname2, "not:", 4) == 0) {
not_in = 1;
- dirname2++;
+ dirname2 += 4;
} else {
not_in = 0;
}
}
void print_help(FILE *out) {
- fprintf(out, "Usage: finddup [OPTION]... DIR1 [[^]DIR2]\n");
+ fprintf(out, "Usage: finddup [OPTION]... DIR1 [[not:]DIR2]\n");
fprintf(out, "Version %s (%s)\n", VERSION_NUMBER, UNAME);
- fprintf(out, "Without DIR2, lists duplicated files in DIR1. With DIR2, list files common to both directories. With DIR2 starting with a ^, list files found in DIR1 which do not exist in DIR2.\n");
+ fprintf(out, "Without DIR2, lists duplicate files found in DIR1. With DIR2, lists files common to both directories. With the not: prefix, lists files found in DIR1 which do not exist in DIR2.\n");
fprintf(out, "\n");
fprintf(out, " -h show this help.\n");
fprintf(out, " -r show the real file paths.\n");