Introduced -C as a short form of "-v -v -v -v -c".

This commit is contained in:
Moritz Bunkus 2004-03-20 11:03:48 +00:00
parent 4418dddc2c
commit 794bd144d2

View File

@ -245,7 +245,10 @@ void parse_args(int argc, char **argv, char *&file_name) {
mxexit(0); mxexit(0);
} else if (!strcmp(argv[i], "-c") || !strcmp(argv[i], "--checksum")) } else if (!strcmp(argv[i], "-c") || !strcmp(argv[i], "--checksum"))
calc_checksums = true; calc_checksums = true;
else if (file_name != NULL) else if (!strcmp(argv[i], "-C") || !strcmp(argv[i], "--check-mode")) {
calc_checksums = true;
verbose = 4;
} else if (file_name != NULL)
mxerror("Only one input file is allowed.\n"); mxerror("Only one input file is allowed.\n");
else else
file_name = argv[i]; file_name = argv[i];