diff --git a/scripts/func_defs.py b/scripts/func_defs.py index 7ea7895..4f1f271 100755 --- a/scripts/func_defs.py +++ b/scripts/func_defs.py @@ -86,6 +86,12 @@ def bail(msg): print(msg, file=sys.stderr) exit(1) + +# print a warning +def warn(msg): + """Print the warning message to stderr.""" + print(f"WARNING: {msg}", file=sys.stderr) + def TrueOrFalse(value): value = repr(value) if value: