mirror of
https://github.com/3b1b/manim.git
synced 2025-08-03 04:04:36 +08:00
add cli flag -v to show version info
This commit is contained in:
@ -7,6 +7,12 @@ import manimlib.utils.init_config
|
||||
def main():
|
||||
args = manimlib.config.parse_cli()
|
||||
|
||||
if args.version:
|
||||
from manimlib import __version__
|
||||
print(f"ManimGL v{__version__}")
|
||||
if args.file == None:
|
||||
return
|
||||
|
||||
if args.config:
|
||||
manimlib.utils.init_config.init_customization()
|
||||
else:
|
||||
|
Reference in New Issue
Block a user