fix show version

This commit is contained in:
2025-10-16 12:31:20 +02:00
parent 6099806e22
commit 92c14ebe57

View File

@@ -114,8 +114,9 @@ func InitConfig(output io.Writer) (*Config, error) {
if len(flagset.Args()) > 0 { if len(flagset.Args()) > 0 {
conf.Document = flagset.Args()[0] conf.Document = flagset.Args()[0]
} else { } else {
if !conf.Showversion {
flagset.Usage() flagset.Usage()
os.Exit(1) }
} }
if conf.Debug { if conf.Debug {