Add --warning level.

master
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
1 changed files with 4 additions and 0 deletions

View File

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