Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix behavior when calling `manim` on its own. Fixes #690 (#732)

Leo Torresff88da9f64ec
diff --git a/manim/_config/main_utils.py b/manim/_config/main_utils.py
index 1e3075c8f..c833b3735 100644
--- a/manim/_config/main_utils.py
+++ b/manim/_config/main_utils.py
@@ -107,6 +107,9 @@ def parse_args(args):
if args[0] == "python" and args[1] == "-m":
args = args[2:]
+ if len(args) == 1:
+ return _parse_args_no_subcmd(args)
+
subcmd = _find_subcommand(args)
if subcmd == "cfg":
return _parse_args_cfg_subcmd(args)