From db4ba5ad5f12df6c69699a1a68e8118067ae563a Mon Sep 17 00:00:00 2001 From: celogeek <65178+celogeek@users.noreply.github.com> Date: Sat, 1 Apr 2023 19:01:37 +0200 Subject: [PATCH] fix auto config --- main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index f996fd8..363fdb5 100644 --- a/main.go +++ b/main.go @@ -216,6 +216,11 @@ func main() { } flag.Parse() + if opt.Auto { + opt.AutoRotate = true + opt.AutoSplitDoublePage = true + } + if opt.Save { f, err := os.Create(ConfigFile) if err != nil { @@ -315,11 +320,6 @@ func main() { opt.Title = filepath.Base(defaultOutput[0 : len(defaultOutput)-len(ext)]) } - if opt.Auto { - opt.AutoRotate = true - opt.AutoSplitDoublePage = true - } - fmt.Fprintln(os.Stderr, opt) if err := epub.NewEpub(&epub.EpubOptions{