aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2021-05-08 17:24:30 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2021-05-08 17:25:36 -0400
commit054508b5edeaef602ee4251bb3828387cb26f582 (patch)
treee63aab38e53841cbf15295a8060d8bce7dd860cd /src
parented0ba975e39cebb7e15c1fdac560a66a543fce87 (diff)
downloadcleanpath-054508b5edeaef602ee4251bb3828387cb26f582.tar.gz
Warn once about regex on windows from cleanpath utility, not library
Diffstat (limited to 'src')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index ec77f78..216b875 100644
--- a/src/main.c
+++ b/src/main.c
@@ -145,6 +145,9 @@ int main(int argc, char *argv[]) {
}
if (ARGM("--regex") || ARGM("-r")) {
filter_mode = CLEANPATH_FILTER_REGEX;
+#if OS_WINDOWS
+ fprintf(stderr, "WARNING: --regex|-r is not implemented on Windows. Using default filter mode.\n");
+#endif
continue;
}
if (ARGM("--sep") || ARGM("-s")) {