Allow different loglevels

This commit is contained in:
Matthias
2018-07-18 22:52:57 +02:00
parent 7134c15e86
commit 789b98015f
3 changed files with 19 additions and 18 deletions

View File

@@ -3,7 +3,6 @@ This module contains the argument manager class
"""
import argparse
import logging
import os
import re
from typing import List, NamedTuple, Optional
@@ -64,11 +63,10 @@ class Arguments(object):
"""
self.parser.add_argument(
'-v', '--verbose',
help='be verbose',
action='store_const',
help='verbose mode (-vv for more, -vvv to get all messages)',
action='count',
dest='loglevel',
const=logging.DEBUG,
default=logging.INFO,
default=0,
)
self.parser.add_argument(
'--version',