X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=main.c;h=156a3f0c1af5c81c4c72d7ac70dc64087ea5c29c;hb=0d1a740bc71fee53892fb192215e9e318d0da5ac;hp=78293d6d7615a3682a6153ff6b221381e5dc44cf;hpb=b147602d78c28f73627a617a00e49e4eb6f6b3f8;p=xonotic%2Fgmqcc.git diff --git a/main.c b/main.c index 78293d6..156a3f0 100644 --- a/main.c +++ b/main.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012, 2013 + * Copyright (C) 2012, 2013, 2014 * Dale Weiler * Wolfgang Bumiller * @@ -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 */