mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
print version when start
This commit is contained in:
parent
7425057d9f
commit
ed99427a3b
1 changed files with 5 additions and 6 deletions
|
@ -2,15 +2,14 @@
|
|||
import manimlib.config
|
||||
import manimlib.extract_scene
|
||||
import manimlib.utils.init_config
|
||||
from manimlib import __version__
|
||||
|
||||
|
||||
def main():
|
||||
args = manimlib.config.parse_cli()
|
||||
|
||||
if args.version:
|
||||
from manimlib import __version__
|
||||
print(f"ManimGL v{__version__}")
|
||||
if args.file == None:
|
||||
print(f"ManimGL \033[32mv{__version__}\033[0m")
|
||||
if args.version and args.file == None:
|
||||
return
|
||||
|
||||
if args.config:
|
||||
|
|
Loading…
Add table
Reference in a new issue