Add --warning level.
This commit is contained in:
parent
7021308c9e
commit
8801407f58
1 changed files with 4 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue