X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=main.c;h=156a3f0c1af5c81c4c72d7ac70dc64087ea5c29c;hp=a5e915a0fdbf5405929b93b027bd90da60cb0adc;hb=aed893b6b8c0fbace708d95767a1ab7e9a6a520b;hpb=a934e0fe4b4fd4b79350eb8c7f39b83f86514d3a diff --git a/main.c b/main.c index a5e915a..156a3f0 100644 --- a/main.c +++ b/main.c @@ -85,6 +85,7 @@ static int usage(void) { " -Ono- disable specific optimization\n" " -Ohelp list optimizations\n"); con_out(" -force-crc=num force a specific checksum into the header\n"); + con_out(" -coverage add coverage support\n"); return -1; } @@ -280,6 +281,10 @@ static bool options_parse(int argc, char **argv) { con_color(0); continue; } + if (!strcmp(argv[0]+1, "coverage")) { + OPTS_OPTION_BOOL(OPTION_COVERAGE) = true; + continue; + } switch (argv[0][1]) { /* -h, show usage but exit with 0 */