con_out(" -o, --output=file output file, defaults to progs.dat\n"
" -s filename add a progs.src file to be used\n");
con_out(" -E stop after preprocessing\n");
+ con_out(" -config file use the specified ini file\n");
con_out(" -std=standard select one of the following standards\n"
" -std=qcc original QuakeC\n"
" -std=fteqcc fteqcc QuakeC\n"
char buffer[1024];
char *redirout = (char*)stdout;
char *redirerr = (char*)stderr;
+ char *config = NULL;
while (!argend && argc > 1) {
char *argarg;
con_change(redirout, redirerr);
continue;
}
+ if (options_long_gcc("config", &argc, &argv, &argarg)) {
+ config = argarg;
+ continue;
+ }
/* show defaults (like pathscale) */
if (!strcmp(argv[0]+1, "show-defaults")) {
vec_push(items, item);
}
}
+ opts_ini_init(config);
return true;
}