screepers / screeps-launcher

Launcher for the Screeps Private Server
MIT License
133 stars 34 forks source link

command arguments missing #3

Closed Marcel-a closed 5 years ago

Marcel-a commented 5 years ago

I think, there is a mistake in screeps-launcher/cmd/screeps-launcher/main.go I cannot call screeps-launcher without any parameter to start the server. In line 19 you are accessing os.Args[1] but if you don't give any parameter, the array-element 1 dosn't exist. In the consoel I'm getting the following error:

~/screeps-launcher$ sudo ./screeps-launcher panic: runtime error: index out of range

goroutine 1 [running]: main.main() /home/circleci/project/cmd/screeps-launcher/main.go:19 +0x1cd

AlinaNova21 commented 5 years ago

Was definitely a mistake there, that is now fixed, thanks!