From dc33e46e2443889222015c1978446107fb968510 Mon Sep 17 00:00:00 2001 From: Elias Bennour Date: Sun, 3 Dec 2023 14:59:02 +0100 Subject: [PATCH] update help --- njvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/njvm.c b/njvm.c index 01ecbf5..ddf73ad 100644 --- a/njvm.c +++ b/njvm.c @@ -21,7 +21,7 @@ void version(void) { } void help(void) { - printf("usage: ./njvm [option] [option] ...\n\t--version\tshow version and exit\n\t--help\t\tshow this help and exit\n"); + printf("Usage: ./njvm [options] \n\t--debug\tstart virtual machine in debug mode\n\t--version\tshow version and exit\n\t--help\t\tshow this help and exit\n"); } void execute(struct program program) { @@ -131,7 +131,7 @@ int main(int argc, char *argv[]) { printProgram(program); execute(program); } else { - printf("Error: no program selected\n"); + printf("Error: no code file specified\n"); return 1; } // Stopped