treat '-' input file as stdin

This commit is contained in:
b1ek 2024-06-03 09:06:03 +10:00
parent 4842b4ad52
commit c777bd25b0
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 1 additions and 1 deletions

View File

@ -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) {