summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/totalrecall/main.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/cmd/totalrecall/main.go b/cmd/totalrecall/main.go
index d6abcf5..f3a84f9 100644
--- a/cmd/totalrecall/main.go
+++ b/cmd/totalrecall/main.go
@@ -69,6 +69,7 @@ func runCommand(cmd *cobra.Command, args []string, flags *cli.Flags) error {
OutputDir: ".",
Style: flags.StoryStyle,
Theme: flags.StoryTheme,
+ UltraRealistic: storyUltraRealistic(flags.StoryNoUltraRealistic),
NarratorVoice: flags.NarratorVoice,
})
return runner.Run(flags.StoryFile)
@@ -139,3 +140,15 @@ func runGUIMode(proc *processor.Processor, 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 {
+ if noUltraRealistic {
+ v := false
+ return &v
+ }
+ return nil // nil → random pick in NewRunner
+}