summaryrefslogtreecommitdiffabout
path: root/tests/gcffmt.c
Side-by-side diff
Diffstat (limited to 'tests/gcffmt.c') (more/less context) (ignore whitespace changes)
-rw-r--r--tests/gcffmt.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/gcffmt.c b/tests/gcffmt.c
index 51e3037..5dcd640 100644
--- a/tests/gcffmt.c
+++ b/tests/gcffmt.c
@@ -26,7 +26,7 @@ usage(const char *arg, FILE *fp, int code)
{
fprintf(fp,
"usage: %s [-h] [-locus] [-delim=char] [-reduce] [-sort] "
- "[-type=grecs|bind|meta1|git] file [file...]\n",
+ "[-type=grecs|bind|meta1|git] [-Idir] [-include=dir] file [file...]\n",
arg);
exit(code);
}
@@ -70,7 +70,11 @@ main(int argc, char **argv)
grecs_parser_fun = grecs_git_parser;
else
usage(progname, stderr, 1);
- } else if (arg[0] == '-')
+ } else if (strncmp(arg, "-I", 2) == 0)
+ grecs_preproc_add_include_dir(arg+2);
+ else if (strncmp(arg, "-include=", 9) == 0)
+ grecs_preproc_add_include_dir(arg+9);
+ else if (arg[0] == '-')
usage(progname, stderr, 1);
else {
file = arg;

Return to:

Send suggestions and report system problems to the System administrator.