updated cli usage message

This commit is contained in:
Francesco Cozzuto
2022-03-10 20:27:44 +01:00
parent 2c168edecd
commit 195cc01929
+2 -8
View File
@@ -11,17 +11,11 @@
#include "builtins/basic.h"
static const char usage[] =
"Usage:\n"
" $ noja [ <file> | -f <file> | -c <code> | -h ]\n"
"\n"
"For example:\n"
"Usage patterns:\n"
" $ noja run file.noja\n"
" $ noja run inline \"print('some noja code');\"\n"
" $ noja dis file.noja\n"
" $ noja dis inline \"print('some noja code');\""
"\n"
"NOTE: When a line starts with $ it means that it's a terminal command.\n";
" $ noja dis inline \"print('some noja code');\"\n";
static _Bool interpret_file(const char *file);
static _Bool interpret_code(const char *code);
static _Bool disassemble_file(const char *file);