I’m trying to get some config file path as command line argument to my project executable, but printing OS.get_cmdline_args() returns an empty array. So does OS.get_cmdline_user_args().
I found where the problem was. I’m on NixOS. In order to run the binary I need to do it with
$ steam-run myapp
I had created a shell script as a shortcut and was not passing the arguments of the script as arguments to steam-run myapp. If I do that, the get_cmdline_*args() work as expected.