Skip to content

Commit

Permalink
Fix command line arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krivak committed Sep 30, 2020
1 parent 0b45253 commit d1b9e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/godot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func readArgs() (args arguments, err error) {
}
}

if len(args.files) == 0 {
if !args.help && !args.version && len(args.files) == 0 {
return arguments{}, fmt.Errorf("files list is empty")
}

Expand Down

0 comments on commit d1b9e80

Please sign in to comment.