From 4ea44ce70066f66f134fb9efe60d900dc743c9b9 Mon Sep 17 00:00:00 2001 From: Costa Shulyupin Date: Wed, 24 Jun 2020 08:08:01 +0300 Subject: [PATCH] level_limit --- srcxray.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/srcxray.py b/srcxray.py index 0fbd02d..d96ed1f 100755 --- a/srcxray.py +++ b/srcxray.py @@ -1215,9 +1215,13 @@ def main(): else: while sys.argv[1].startswith('--'): global verbose + global level_limit log(sys.argv[1][2:]) if sys.argv[1][2:] == 'verbose': verbose = True + if sys.argv[1][2:] == 'level_limit': + level_limit = int(sys.argv[2]) + sys.argv = sys.argv[1:] sys.argv = sys.argv[1:] a1 = sys.argv[1]