parse_cmdline(int argc, char **argv, opt_option *options, size_t nopts,
void (*print_error) (const char *fmt, ...))
{
- int errors = 0;
+ int errors = 0, warnings = 0;
size_t i;
int got_it;
}
}
if (!got_it) {
- print_error(_("unrecognized option `%s'"), argv[0]);
- errors++;
+ print_error(_("warning: unrecognized option `%s'"),
+ argv[0]);
+ warnings++;
}
} else { /* sopt */
}
}
if (!got_it) {
- print_error(_("unrecognized option `%s'"), argv[0]);
- errors++;
+ print_error(_("warning: unrecognized option `%s'"),
+ argv[0]);
+ warnings++;
}
}
} else { /* not an option, then it should be a file or something */
N_("enables/disables warning"), NULL },
{ 'e', "preproc-only", 0, preproc_only_handler, 0,
N_("preprocess only (writes output to stdout by default)"), NULL },
+ { 'i', NULL, 1, opt_preproc_option, 0,
+ N_("add include path"), N_("path") },
{ 'I', NULL, 1, opt_preproc_option, 0,
N_("add include path"), N_("path") },
{ 'P', NULL, 1, opt_preproc_option, 1,