From fe10cfecef99e004b7827ea2d7ec273b6074fa4c Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Thu, 8 Jun 2023 09:47:18 -0700 Subject: [PATCH] Improved usage standard message --- src/uxnasm.c | 2 +- src/uxncli.c | 2 +- src/uxnemu.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uxnasm.c b/src/uxnasm.c index 4df21ae..b42ba78 100644 --- a/src/uxnasm.c +++ b/src/uxnasm.c @@ -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)) diff --git a/src/uxncli.c b/src/uxncli.c index 695b399..9d15501 100644 --- a/src/uxncli.c +++ b/src/uxncli.c @@ -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++])) diff --git a/src/uxnemu.c b/src/uxnemu.c index 06c0a97..fe31750 100644 --- a/src/uxnemu.c +++ b/src/uxnemu.c @@ -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++];