diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-12-03 04:22:52 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-12-03 04:22:52 +0000 |
commit | 4332862fa3b5ba4992d013173bb23fe88bdb390d (patch) | |
tree | 4c1f8cbc8449c682c9136f861d036e81c077e318 | |
parent | 16da0e0f2cb981f4bb5b11027cead062ab593b93 (diff) | |
download | obf-4332862fa3b5ba4992d013173bb23fe88bdb390d.tar.gz obf-4332862fa3b5ba4992d013173bb23fe88bdb390d.tar.bz2 obf-4332862fa3b5ba4992d013173bb23fe88bdb390d.zip |
Fix usage and error messages
-rw-r--r-- | obi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |