From cbf546ee696c300af1d2f920ea960125a2bf395f Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 8 Nov 2020 20:12:19 -0800 Subject: [PATCH] Add level_by_argv level --silent. --- voussoirkit/vlogging.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/voussoirkit/vlogging.py b/voussoirkit/vlogging.py index b106711..2215727 100644 --- a/voussoirkit/vlogging.py +++ b/voussoirkit/vlogging.py @@ -25,6 +25,9 @@ def get_level_by_argv(argv): elif '--quiet' in argv: level = ERROR argv.remove('--quiet') + elif '--silent' in argv: + level = 99999999999 + argv.remove('--silent') else: level = INFO