A community-maintained Python framework for creating mathematical animations.
Recognize verbose in config
azarzadavila87fd921db215
diff --git a/manim/default.cfg b/manim/default.cfgindex 9cf64ede1..4cc02531c 100644--- a/manim/default.cfg+++ b/manim/default.cfg@@ -39,6 +39,9 @@ show_file_in_finder = False# -q, --quietquiet = False+# -v, --verbose+verbose = 32+# --soundsound = Falsediff --git a/manim/utils/config_utils.py b/manim/utils/config_utils.pyindex bad2a1348..1bfe7c2dc 100644--- a/manim/utils/config_utils.py+++ b/manim/utils/config_utils.py@@ -122,6 +122,9 @@ def _parse_file_writer_config(config_parser, args):[fw_config["save_last_frame"], fw_config["from_animation_number"]])+ # Read in the log level+ verbose = getattr(args, "verbose")+ fw_config["verbose"] = default.getint("verbose") if verbose is None else verbosereturn fw_config@@ -314,6 +317,13 @@ def _parse_cli(arg_list, input=True):"--config_file", help="Specify the configuration file",)+ parser.add_argument(+ "-v", "--verbose",+ type=int,+ help="Verbosity level",+ metavar="loglevel",+ choices=[-8, 0, 8, 16, 24, 32, 40, 48, 56]+ )return parser.parse_args(arg_list)