Skip to content

Commit d1b9e80

Browse files
author
Denis Krivak
committed
Fix command line arguments.
1 parent 0b45253 commit d1b9e80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/godot/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func readArgs() (args arguments, err error) {
140140
}
141141
}
142142

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

0 commit comments

Comments
 (0)