1 Commits
v0.6 ... v0.6.1

Author SHA1 Message Date
yo
a1892cbe37 Bugfix when no input file specified 2023-09-11 16:14:33 +02:00

View File

@ -33,7 +33,7 @@ import (
) )
const ( const (
version = "0.6" version = "0.6.1"
) )
var ( var (
@ -84,6 +84,10 @@ func main() {
} }
args := os.Args args := os.Args
if len(os.Args) < 2 {
pflag.Usage()
os.Exit(1)
}
filename := args[len(args)-1] filename := args[len(args)-1]
var f *os.File var f *os.File