This is a simple quality-of-life bash script I wrote.
It makes it easy to install multiple versions of the emulator on the same system and run them from any arbitrary place. I have a directory ~/x16emu where I then create subdirectories for each revision, e.g. ~/x16emu/r38
The r38 folder is just the contents of the release .zip file (x16emu, rom.bin, kernal.sym, etc)
I place this bash script in the path (e.g. /usr/local/bin) and rename it x16emu. Now you can launch any revision by typing x16emu -v r38 and all other arguments are passed through to the actual emulator. Furthermore, if you want to use a custom ROM image and put -rom /path/to/customrom.bin , then the bash script uses that and does not send its own auto-generated -rom argument.
fixed a bug in the -rom argument logic