From f9c7585730d2d119939a6e1e503684ca6ff2e086 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 7 Apr 2026 22:29:23 +0300 Subject: cleanup --- cmd/totalrecall/main.go | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'cmd') diff --git a/cmd/totalrecall/main.go b/cmd/totalrecall/main.go index c991378..a0444b2 100644 --- a/cmd/totalrecall/main.go +++ b/cmd/totalrecall/main.go @@ -113,7 +113,7 @@ func runCommand(cmd *cobra.Command, args []string, flags *cli.Flags) error { OutputDir: ".", Style: flags.StoryStyle, Theme: flags.StoryTheme, - UltraRealistic: storyUltraRealistic(flags.StoryNoUltraRealistic), + UltraRealistic: storyUltraRealistic(flags.StoryNoUltraRealistic, flags.StoryUltraRealistic), NarratorVoice: flags.NarratorVoice, NarrateEnabled: flags.NarrateEnabled, Slug: flags.StorySlug, @@ -221,11 +221,16 @@ func runStoryVideos(flags *cli.Flags) error { return nil } -// storyUltraRealistic converts the --no-ultra-realistic bool flag into a *bool -// for RunnerConfig. When noUltraRealistic is true, returns a pointer to false -// (forcing standard comic style). When false (flag not set), returns nil so -// the runner picks randomly 50/50 each run. -func storyUltraRealistic(noUltraRealistic bool) *bool { +// storyUltraRealistic converts the --ultra-realistic / --no-ultra-realistic +// bool flags into a *bool for RunnerConfig. +// - --ultra-realistic → pointer to true (force photorealistic panels) +// - --no-ultra-realistic → pointer to false (force standard comic style) +// - neither flag set → nil (runner picks randomly 50/50 each run) +func storyUltraRealistic(noUltraRealistic, ultraRealistic bool) *bool { + if ultraRealistic { + v := true + return &v + } if noUltraRealistic { v := false return &v -- cgit v1.2.3