From b12dd9a9abf9ee77f07b64d2f9db2e3b67d6e4a9 Mon Sep 17 00:00:00 2001
From: Bert Palm <bert.palm@ufz.de>
Date: Fri, 12 Mar 2021 15:50:49 +0100
Subject: [PATCH] added warning

---
 saqc/funcs/flagtools.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/saqc/funcs/flagtools.py b/saqc/funcs/flagtools.py
index fb9522324..c9227a7d4 100644
--- a/saqc/funcs/flagtools.py
+++ b/saqc/funcs/flagtools.py
@@ -75,6 +75,10 @@ def clearFlags(data: DictOfSeries, field: ColumnName, flagger: Flagger, **kwargs
     forceFlags : set whole column to a flag value
     flagUnflagged : set flag value at all unflagged positions
     """
+    if 'flag' in kwargs:
+        flag = kwargs.pop('flag')
+        warnings.warn(f'`flag={flag}` is ignored here.')
+
     return forceFlags(data, field, flagger, flag=UNFLAGGED, **kwargs)
 
 
-- 
GitLab