Add --warning level.

This commit is contained in:
voussoir 2021-09-23 22:47:04 -07:00
parent 7021308c9e
commit 8801407f58
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -51,6 +51,7 @@ def get_level_by_argv(argv):
--loud: LOUD
--debug: DEBUG
--warning: WARNING
--quiet: ERROR
--silent: SILENT
none of the above: INFO
@ -63,6 +64,9 @@ def get_level_by_argv(argv):
elif '--debug' in argv:
level = DEBUG
argv.remove('--debug')
elif '--warning' in argv:
level = WARNING
argv.remove('--warning')
elif '--quiet' in argv:
level = ERROR
argv.remove('--quiet')