From 4332862fa3b5ba4992d013173bb23fe88bdb390d Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 3 Dec 2024 04:22:52 +0000 Subject: Fix usage and error messages --- obi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'obi.c') diff --git a/obi.c b/obi.c index 72cff00..6f12d9a 100644 --- a/obi.c +++ b/obi.c @@ -74,7 +74,7 @@ void interpret(machine_t *cpu, node_t *ast, size_t num) void usage(const char *name, FILE *fp) { fprintf(fp, - "Usage: %s [FILE]...\n\tInterprets FILE as a brainfuck program" + "Usage: %s FILE...\n\tInterprets FILE as a BrainFuck program" "\n", name); } @@ -116,7 +116,7 @@ int main(int argc, char *argv[]) res = parse_buffer(buffer); if (res.nodes == NULL) { - fputs("Exiting early...\n", stderr); + fputs("[WARNING]: Empty source file.", stderr); ret = 1; goto end; } -- cgit v1.2.3-13-gbd6f