Skip to content

Commit 386f34d

Browse files
committed
Allow no files to be provided in -L argument
1 parent 367b49b commit 386f34d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func main() {
8686
os.Exit(1)
8787
}
8888

89-
if len(files) == 0 {
89+
if len(files) == 0 && len(inputFile) == 0 {
9090
fmt.Fprintf(os.Stderr, "no file specified\n\n")
9191
flag.Usage()
9292
os.Exit(1)

0 commit comments

Comments
 (0)