diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2020-06-07 16:37:53 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2020-06-07 16:42:55 -0400 |
commit | 8896f35294649975c1df22a8b57db4333cc56091 (patch) | |
tree | 10eb0664f70cdc1d837a4f469d720149042dc8f9 /opt.c | |
parent | a9f97adf92f8000a198de2c48132ba4a39ed1d5c (diff) | |
download | bfs-8896f35294649975c1df22a8b57db4333cc56091.tar.xz |
parse: Prohibit actions inside -exclude
Diffstat (limited to 'opt.c')
-rw-r--r-- | opt.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -998,6 +998,10 @@ int optimize_cmdline(struct cmdline *cmdline) { return -1; } + if (cmdline->exclude->always_true) { + bfs_warning(cmdline, "${red}-exclude${rs} applies to all files.\n"); + } + // Only non-excluded files are evaluated state.facts = state.facts_when_false; |