The way you have been passing arguments to the Linux application is the right way to do. Actually it seems that the application is getting the argument properly as the print message states the following:
failed to open bitstream file 'str.bin' for reading
Probably the issue might be with the path of the file when you try to open it on the application code.
Ibai Don’t forget to reply, kudo, and accept as solution.