Bisa / factorio-init

Factorio init script
MIT License
414 stars 82 forks source link

No such command! when passing multiple command line arguments #168

Closed mrogghe closed 3 years ago

mrogghe commented 3 years ago

Command like so: factorio new-game vgw1 data/map-gen-settings.free1.json data/map-settings.free1.json

Results in the script erroring out with "No such command!" error.

mrogghe commented 3 years ago

Line 785 of the script: load_config "${config_file}" "$*" || return $?

Change the $* to $@ load_config "${config_file}" "$@" || return $?

This allows for the array to be passed instead of the positionals translated as a string. The script properly identifies the command being run with this change.