mirror of
https://github.com/3b1b/manim.git
synced 2025-08-03 04:04:36 +08:00
add cli flag to specify log level
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
import manimlib.config
|
||||
import manimlib.logger
|
||||
import manimlib.extract_scene
|
||||
import manimlib.utils.init_config
|
||||
from manimlib import __version__
|
||||
@ -11,6 +12,8 @@ def main():
|
||||
args = manimlib.config.parse_cli()
|
||||
if args.version and args.file == None:
|
||||
return
|
||||
if args.log_level:
|
||||
manimlib.logger.log.setLevel(args.log_level)
|
||||
|
||||
if args.config:
|
||||
manimlib.utils.init_config.init_customization()
|
||||
|
Reference in New Issue
Block a user