From d8e78ffef0b7bc8515e3ea88d0b025094fe650ec Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Thu, 8 Jun 2023 09:52:11 -0700 Subject: [PATCH] Fixed usage --- src/uxn11.c | 2 +- src/uxnasm.c | 2 +- src/uxncli.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uxn11.c b/src/uxn11.c index e9d62ec..bdd965e 100644 --- a/src/uxn11.c +++ b/src/uxn11.c @@ -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"); 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++]))