mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-24 15:52:38 +02:00
fix auto config
This commit is contained in:
parent
6bd46fc64c
commit
db4ba5ad5f
10
main.go
10
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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user