We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73adf87 commit 3bf3a06Copy full SHA for 3bf3a06
git_sim/__main__.py
@@ -155,6 +155,7 @@ def main():
155
help="Output format for the animation files. Supports mp4 and webm",
156
type=str,
157
default="mp4",
158
+ choices=["mp4", "webm"],
159
)
160
161
subparsers = parser.add_subparsers(dest="subcommand", help="subcommand help")
@@ -308,6 +309,9 @@ def main():
308
309
if args.light_mode:
310
config.background_color = WHITE
311
312
+ t = datetime.datetime.fromtimestamp(time.time()).strftime("%m-%d-%y_%H-%M-%S")
313
+ config.output_file = "git-sim-" + args.subcommand + "_" + t + ".mp4"
314
+
315
scene_class = get_scene_for_command(args=args)
316
scene = scene_class(args=args)
317
scene.render()
0 commit comments