uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit fe10cfecef99e004b7827ea2d7ec273b6074fa4c
parent 650c38115d412b8eddf584497863d69244107c1f
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date:   Thu,  8 Jun 2023 09:47:18 -0700

Improved usage standard message

Diffstat:
Msrc/uxnasm.c | 2+-
Msrc/uxncli.c | 2+-
Msrc/uxnemu.c | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git 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 @@ -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 @@ -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++];