From c777bd25b06ab99791e0b001ec64e879d7c6c569 Mon Sep 17 00:00:00 2001 From: b1ek Date: Mon, 3 Jun 2024 09:06:03 +1000 Subject: [PATCH] treat '-' input file as stdin --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 01584eb..6bd3c00 100644 --- a/main.go +++ b/main.go @@ -29,7 +29,7 @@ func main() { } var file []byte - if args.File != "" { + if (args.File != "") && (args.File != "-") { f, err := os.ReadFile(args.File) if err != nil { if os.IsNotExist(err) {