aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-04-09 10:24:42 +0800
committerLi Jin <dragon-fly@qq.com>2020-04-09 10:24:42 +0800
commitb0f2a35eeb7c7b37c226b73fad51a0b8230daa62 (patch)
tree363d1950c11ae417205fb44b6a9fab60d7c5c0af /README.md
parentab3f56be961531d92027319b0f906bfd8c167e2e (diff)
downloadyuescript-b0f2a35eeb7c7b37c226b73fad51a0b8230daa62.tar.gz
yuescript-b0f2a35eeb7c7b37c226b73fad51a0b8230daa62.tar.bz2
yuescript-b0f2a35eeb7c7b37c226b73fad51a0b8230daa62.zip
clean up.
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/README.md b/README.md
index 66ce7f0..4f3cdf8 100644
--- a/README.md
+++ b/README.md
@@ -67,7 +67,7 @@ Usage: moonp [options|files|directories] ...
67 -e str Execute a file or raw codes 67 -e str Execute a file or raw codes
68 -t path Specify where to place compiled files 68 -t path Specify where to place compiled files
69 -o file Write output to file 69 -o file Write output to file
70 -s Use space in generated codes instead of tabs 70 -s Use spaces in generated codes instead of tabs
71 -m Generate minified codes 71 -m Generate minified codes
72 -p Write output to standard out 72 -p Write output to standard out
73 -b Dump compile time (doesn't write output) 73 -b Dump compile time (doesn't write output)
@@ -79,6 +79,13 @@ Usage: moonp [options|files|directories] ...
79 Execute without options to enter REPL, type symbol '$' 79 Execute without options to enter REPL, type symbol '$'
80 in a single line to start/stop multi-line mode 80 in a single line to start/stop multi-line mode
81``` 81```
82&emsp;&emsp;Use cases:
83&emsp;&emsp;Recursively compile every moon file under current path: `moonp .`
84&emsp;&emsp;Compile and save results to a target path: `moonp -t /target/path/ .`
85&emsp;&emsp;Compile and reserve debug info: `moonp -l .`
86&emsp;&emsp;Compile and generate minified codes: `moonp -m .`
87&emsp;&emsp;Execute raw codes: `moonp -e 'print 123'`
88&emsp;&emsp;Execute a moon file: `moonp -e main.moon`
82 89
83 90
84 91