add readme, show help w/o args

This commit is contained in:
2025-10-15 14:43:34 +02:00
parent 7544f8877a
commit b74126b9b0
2 changed files with 30 additions and 0 deletions

View File

@@ -99,6 +99,9 @@ func InitConfig(output io.Writer) (*Config, error) {
// arg is the epub file
if len(flagset.Args()) > 0 {
conf.Document = flagset.Args()[0]
} else {
flagset.Usage()
os.Exit(1)
}
if conf.Debug {