Fixed usage

This commit is contained in:
Devine Lu Linvega 2023-06-08 09:52:11 -07:00
parent e2a26e3103
commit d8e78ffef0
3 changed files with 3 additions and 3 deletions

View File

@ -201,7 +201,7 @@ main(int argc, char **argv)
struct pollfd fds[3];
static const struct itimerspec screen_tspec = {{0, 16666666}, {0, 16666666}};
if(argc < 2)
return system_error("usage", "uxn11 game.rom args");
return system_error("usage", "uxn11 file.rom [args...]");
rom_path = argv[1];
if(!uxn_boot(&u, (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8))))
return system_error("boot", "Failed");

View File

@ -482,7 +482,7 @@ main(int argc, char *argv[])
{
FILE *src, *dst;
if(argc < 3)
return !error("usage", "input.tal output.rom");
return !error("usage", "uxnasm input.tal output.rom");
if(!(src = fopen(argv[1], "r")))
return !error("Invalid input", argv[1]);
if(!assemble(src))

View File

@ -47,7 +47,7 @@ main(int argc, char **argv)
Uxn u;
int i = 1;
if(i == argc)
return system_error("usage", "uxncli game.rom args");
return system_error("usage", "uxncli file.rom [args..]");
if(!uxn_boot(&u, (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8))))
return system_error("Boot", "Failed");
if(!system_load(&u, argv[i++]))