Skip to content

Commit 3bf3a06

Browse files
Enhance output video file names to match image names
Signed-off-by: Jacob Stopak <jacob@initialcommit.io>
1 parent 73adf87 commit 3bf3a06

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

git_sim/__main__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ def main():
155155
help="Output format for the animation files. Supports mp4 and webm",
156156
type=str,
157157
default="mp4",
158+
choices=["mp4", "webm"],
158159
)
159160

160161
subparsers = parser.add_subparsers(dest="subcommand", help="subcommand help")
@@ -308,6 +309,9 @@ def main():
308309
if args.light_mode:
309310
config.background_color = WHITE
310311

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+
311315
scene_class = get_scene_for_command(args=args)
312316
scene = scene_class(args=args)
313317
scene.render()

0 commit comments

Comments
 (0)