diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |   Use cases: | ||
83 |   Recursively compile every moon file under current path: `moonp .` | ||
84 |   Compile and save results to a target path: `moonp -t /target/path/ .` | ||
85 |   Compile and reserve debug info: `moonp -l .` | ||
86 |   Compile and generate minified codes: `moonp -m .` | ||
87 |   Execute raw codes: `moonp -e 'print 123'` | ||
88 |   Execute a moon file: `moonp -e main.moon` | ||
82 | 89 | ||
83 | 90 | ||
84 | 91 | ||