mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 00:02:37 +02:00
show stats only if process images
This commit is contained in:
parent
3858583728
commit
141aeae624
5
main.go
5
main.go
@ -20,7 +20,6 @@ import (
|
||||
|
||||
func main() {
|
||||
cmd := converter.New()
|
||||
defer cmd.Stats()
|
||||
if err := cmd.LoadConfig(); err != nil {
|
||||
cmd.Fatal(err)
|
||||
}
|
||||
@ -139,5 +138,7 @@ $ go install github.com/celogeek/go-comic-converter/v%d@%s
|
||||
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
if !cmd.Options.Dry {
|
||||
cmd.Stats()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user