shithub: rgbds

Download patch

ref: a30564955778896c15f8233df8552bb55b07ce93
parent: 3b0e20703641dfc98ce39970ccf45d14f5d6c194
author: Anthony J. Bentley <[email protected]>
date: Wed Jan 7 17:44:28 EST 2015

rgbasm: Print usage if no filename is given after flags.

--- a/src/asm/main.c
+++ b/src/asm/main.c
@@ -333,6 +333,9 @@
 
 	DefaultOptions = CurrentOptions;
 
+	if (argc == 0)
+		PrintUsage();
+
 	tzMainfile = argv[argc - 1];
 
 	setuplex();