X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/a189615a5671748c348da8ab79042e9e2746eb5e..a5935dae7b4ebf74f45dec59f9b41b11a664e2bd:/Main.cpp diff --git a/Main.cpp b/Main.cpp index ee0dbad..71b1a3c 100644 --- a/Main.cpp +++ b/Main.cpp @@ -146,9 +146,11 @@ int handleCommand(Bundle* bundle) */ int main(int argc, char* const argv[]) { + char *prog = argv[0]; Bundle bundle; bool wantUsage = false; int result = 1; // pessimistically assume an error. + int tolerance = 0; /* default to compression */ bundle.setCompressionMethod(ZipEntry::kCompressDeflated); @@ -214,7 +216,9 @@ int main(int argc, char* const argv[]) wantUsage = true; goto bail; } - bundle.setGrayscaleTolerance(atoi(argv[0])); + tolerance = atoi(argv[0]); + bundle.setGrayscaleTolerance(tolerance); + printf("%s: Images with deviation <= %d will be forced to grayscale.\n", prog, tolerance); break; case 'm': bundle.setMakePackageDirs(true);