This commit is contained in:
parent
28cc208e13
commit
19487527f9
11
run.py
11
run.py
@ -1,7 +1,18 @@
|
|||||||
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from src import main
|
from src import main
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
parser = argparse.ArgumentParser()
|
||||||
|
parser.add_argument("-v", "--verbose", help="increase output verbosity", action="store_true")
|
||||||
|
|
||||||
|
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
if args.verbose:
|
||||||
logging.basicConfig(format='[%(levelname)s] : %(message)s', level=logging.DEBUG)
|
logging.basicConfig(format='[%(levelname)s] : %(message)s', level=logging.DEBUG)
|
||||||
|
else:
|
||||||
|
logging.basicConfig(format='[%(levelname)s] : %(message)s', level=logging.INFO)
|
||||||
|
|
||||||
main.run()
|
main.run()
|
||||||
|
Loading…
Reference in New Issue
Block a user