format
--print-stats print statistics counter IDs and corresponding
values in machine-parsable format
+ --print-version print version only
See also the manual on <https://ccache.dev/documentation.html>.
)";
INSPECT,
PRINT_LOG_STATS,
PRINT_STATS,
+ PRINT_VERSION,
RECOMPRESS_THREADS,
SHOW_LOG_STATS,
TRIM_DIR,
{"max-size", required_argument, nullptr, 'M'},
{"print-log-stats", no_argument, nullptr, PRINT_LOG_STATS},
{"print-stats", no_argument, nullptr, PRINT_STATS},
+ {"print-version", no_argument, nullptr, PRINT_VERSION},
{"recompress", required_argument, nullptr, 'X'},
{"recompress-threads", required_argument, nullptr, RECOMPRESS_THREADS},
{"set-config", required_argument, nullptr, 'o'},
break;
}
+ case PRINT_VERSION:
+ PRINT_RAW(stdout, CCACHE_VERSION);
+ PRINT_RAW(stdout, '\n');
+ break;
+
case 'x': // --show-compression
{
ProgressBar progress_bar("Scanning...");