aboutsummaryrefslogtreecommitdiff
path: root/bpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'bpeg.c')
-rw-r--r--bpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bpeg.c b/bpeg.c
index 69b49ef..8c5f44a 100644
--- a/bpeg.c
+++ b/bpeg.c
@@ -112,7 +112,8 @@ static int run_match(grammar_t *g, const char *filename, vm_op_t *pattern, unsig
else
printf("%s:\n", filename);
}
- print_match(stdout, f, m, print_options);
+ print_match(stdout, f, m,
+ filename ? print_options : print_options & (print_options_t)~PRINT_LINE_NUMBERS);
}
destroy_file(&f);
return 0;