fix default title

This commit is contained in:
Celogeek 2022-12-30 16:15:09 +01:00
parent cdb2141117
commit 5a22932d02
Signed by: celogeek
GPG Key ID: E6B7BDCFC446233A

View File

@ -188,7 +188,8 @@ func main() {
}
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)