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
|
--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')
|
||||||
|
|
Loading…
Reference in a new issue