mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 08:12:36 +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()
|
flag.Parse()
|
||||||
|
|
||||||
|
if opt.Auto {
|
||||||
|
opt.AutoRotate = true
|
||||||
|
opt.AutoSplitDoublePage = true
|
||||||
|
}
|
||||||
|
|
||||||
if opt.Save {
|
if opt.Save {
|
||||||
f, err := os.Create(ConfigFile)
|
f, err := os.Create(ConfigFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -315,11 +320,6 @@ func main() {
|
|||||||
opt.Title = filepath.Base(defaultOutput[0 : len(defaultOutput)-len(ext)])
|
opt.Title = filepath.Base(defaultOutput[0 : len(defaultOutput)-len(ext)])
|
||||||
}
|
}
|
||||||
|
|
||||||
if opt.Auto {
|
|
||||||
opt.AutoRotate = true
|
|
||||||
opt.AutoSplitDoublePage = true
|
|
||||||
}
|
|
||||||
|
|
||||||
fmt.Fprintln(os.Stderr, opt)
|
fmt.Fprintln(os.Stderr, opt)
|
||||||
|
|
||||||
if err := epub.NewEpub(&epub.EpubOptions{
|
if err := epub.NewEpub(&epub.EpubOptions{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user