Skip to content

Commit bb81abe

Browse files
committed
Merge pull request #6 from myitcv/no_files_support
Allow zero files to be provided via -L option
2 parents 367b49b + 386f34d commit bb81abe

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)