Improved usage standard message

This commit is contained in:
Devine Lu Linvega 2023-06-08 09:47:18 -07:00
parent 650c38115d
commit fe10cfecef
3 changed files with 3 additions and 3 deletions

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++]))

View File

@ -514,7 +514,7 @@ main(int argc, char **argv)
set_zoom(DM.w / 1280);
/* load rom */
if(i == argc)
return system_error("usage", "uxnemu [-2x][-3x] file.rom");
return system_error("usage", "uxnemu [-2x][-3x] file.rom [args...]");
if(!start(&u, argv[i], argc - i))
return system_error("Start", "Failed");
rom_path = argv[i++];