commit d8e78ff
Devine Lu Linvega
·
2023-06-08 16:52:11 +0000 UTC
parent e2a26e3
Fixed usage
3 files changed,
+3,
-3
+1,
-1
1@@ -201,7 +201,7 @@ main(int argc, char **argv)
2 struct pollfd fds[3];
3 static const struct itimerspec screen_tspec = {{0, 16666666}, {0, 16666666}};
4 if(argc < 2)
5- return system_error("usage", "uxn11 game.rom args");
6+ return system_error("usage", "uxn11 file.rom [args...]");
7 rom_path = argv[1];
8 if(!uxn_boot(&u, (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8))))
9 return system_error("boot", "Failed");
+1,
-1
1@@ -482,7 +482,7 @@ main(int argc, char *argv[])
2 {
3 FILE *src, *dst;
4 if(argc < 3)
5- return !error("usage", "input.tal output.rom");
6+ return !error("usage", "uxnasm input.tal output.rom");
7 if(!(src = fopen(argv[1], "r")))
8 return !error("Invalid input", argv[1]);
9 if(!assemble(src))
+1,
-1
1@@ -47,7 +47,7 @@ main(int argc, char **argv)
2 Uxn u;
3 int i = 1;
4 if(i == argc)
5- return system_error("usage", "uxncli game.rom args");
6+ return system_error("usage", "uxncli file.rom [args..]");
7 if(!uxn_boot(&u, (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8))))
8 return system_error("Boot", "Failed");
9 if(!system_load(&u, argv[i++]))