MEGA65 / mega65-tools

Tools and Utilities for the MEGA65 Retro Computers
GNU General Public License v3.0
28 stars 31 forks source link

Better handling of new -u argument #104

Closed lydon42 closed 2 years ago

lydon42 commented 2 years ago

If you currently call m65 -F -4 -r -u src/tests/test_468.prg as before, it will silently not start the program.

Correct call is now: m65 -F -4 -r -u 60 src/tests/test_468.prg

This patch will check if the argument to -u is actually a number, and if not will fail with a error message, so you know what you did wrong.

Just took me 30 min to see my error in the call introduced by my own patch...