mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 08:12:36 +02:00
fix default title
This commit is contained in:
parent
cdb2141117
commit
5a22932d02
3
main.go
3
main.go
@ -188,7 +188,8 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if opt.Title == "" {
|
if opt.Title == "" {
|
||||||
opt.Title = filepath.Base(opt.Input)
|
ext := filepath.Ext(defaultOutput)
|
||||||
|
opt.Title = filepath.Base(defaultOutput[0 : len(defaultOutput)-len(ext)])
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Fprintln(os.Stderr, opt)
|
fmt.Fprintln(os.Stderr, opt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user