From 1316415cd7983ebede74a3580fbfd47560f0fa92 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 30 Sep 2022 15:35:11 +0800 Subject: updating doc. --- doc/docs/doc/README.md | 11 +++++++++-- src/yue.cpp | 3 +++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/docs/doc/README.md b/doc/docs/doc/README.md index 3e94c9c..f23a407 100755 --- a/doc/docs/doc/README.md +++ b/doc/docs/doc/README.md @@ -147,7 +147,9 @@ f! ]],{ implicit_return_root = true, reserve_line_number = true, - lint_global = true + lint_global = true, + space_over_tab = false, + target = "5.4" }) ``` @@ -160,17 +162,22 @@ Usage: yue [options|files|directories] ... -h Print this message -e str Execute a file or raw codes + -m Generate minified codes -t path Specify where to place compiled files -o file Write output to file -s Use spaces in generated codes instead of tabs - -m Generate minified codes -p Write output to standard out -b Dump compile time (doesn't write output) + -g Dump global variables used in NAME LINE COLUMN -l Write line numbers from source codes -v Print version -- Read from standard in, print to standard out (Must be first and only argument) + --target=version Specify the Lua version codes the compiler will generate + (version can only be 5.1, 5.2, 5.3 or 5.4) + --path=path_str Append an extra Lua search path string to package.path + Execute without options to enter REPL, type symbol '$' in a single line to start/stop multi-line mode ``` diff --git a/src/yue.cpp b/src/yue.cpp index 07d0fef..f25c702 100644 --- a/src/yue.cpp +++ b/src/yue.cpp @@ -120,6 +120,9 @@ int main(int narg, const char** args) { #ifndef YUE_COMPILER_ONLY " -- Read from standard in, print to standard out\n" " (Must be first and only argument)\n\n" + " --target=version Specify the Lua version that codes will be generated to\n" + " (version can only be 5.1, 5.2, 5.3 or 5.4)\n" + " --path=path_str Append an extra Lua search path string to package.path\n\n" " Execute without options to enter REPL, type symbol '$'\n" " in a single line to start/stop multi-line mode\n" #endif // YUE_COMPILER_ONLY -- cgit v1.2.3-55-g6feb