aboutsummaryrefslogtreecommitdiff
path: root/obi.c
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-12-03 04:22:52 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-12-03 04:22:52 +0000
commit4332862fa3b5ba4992d013173bb23fe88bdb390d (patch)
tree4c1f8cbc8449c682c9136f861d036e81c077e318 /obi.c
parent16da0e0f2cb981f4bb5b11027cead062ab593b93 (diff)
downloadobf-4332862fa3b5ba4992d013173bb23fe88bdb390d.tar.gz
obf-4332862fa3b5ba4992d013173bb23fe88bdb390d.tar.bz2
obf-4332862fa3b5ba4992d013173bb23fe88bdb390d.zip
Fix usage and error messages
Diffstat (limited to 'obi.c')
-rw-r--r--obi.c4
1 files changed, 2 insertions, 2 deletions
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;
}