Add warnings flag

This commit adds a warnings flag

It can be combined with -q / --quiet to display warnings.
The intent is to provide a silent option that still surfaces
warning and error messages so that they are visible in logs.
This commit is contained in:
Aidan Harris
2024-04-14 08:55:50 +00:00
parent 0d72789aa3
commit a3f580254a
2 changed files with 7 additions and 1 deletions

View File

@@ -255,6 +255,12 @@ def build_parser():
action="store_const", const=logging.DEBUG,
help="Print various debugging information",
)
output.add_argument(
"-w", "--warning",
dest="loglevel",
action="store_const", const=logging.WARNING,
help="Print warnings",
)
output.add_argument(
"-g", "--get-urls",
dest="list_urls", action="count",