From 5f3c1e965720d46bc00d2f4d98ac6bc34f8a022e Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 13 May 2022 23:28:01 -0400 Subject: parse: Warn on paths found within -exclude --- src/parse.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/parse.c b/src/parse.c index 65087a0..96f03dd 100644 --- a/src/parse.c +++ b/src/parse.c @@ -608,6 +608,11 @@ static int skip_paths(struct parser_state *state) { } } + if (state->excluding) { + parse_warning(state, "This path will not be excluded. Use a test like ${blu}-name${rs} or ${blu}-path${rs}\n"); + bfs_warning(state->ctx, "within ${red}-exclude${rs} to exclude matching files.\n\n"); + } + if (parse_root(state, arg) != 0) { return -1; } -- cgit v1.2.3