merge #5474: add '-w/--warning' command-line option

pull/5516/head
Mike Fährmann 5 months ago
commit 4cf24f15c2
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -113,7 +113,7 @@ def main():
# loglevels
output.configure_logging(args.loglevel)
if args.loglevel >= logging.ERROR:
if args.loglevel >= logging.WARNING:
config.set(("output",), "mode", "null")
config.set(("downloader",), "progress", None)
elif args.loglevel <= logging.DEBUG:

@ -249,6 +249,12 @@ def build_parser():
action="store_const", const=logging.ERROR,
help="Activate quiet mode",
)
output.add_argument(
"-w", "--warning",
dest="loglevel",
action="store_const", const=logging.WARNING,
help="Print only warnings and errors",
)
output.add_argument(
"-v", "--verbose",
dest="loglevel",

Loading…
Cancel
Save