diff options
author | Mike Pall <mike> | 2011-06-13 01:04:23 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2011-06-13 01:04:23 +0200 |
commit | 0eee70cd4d662bc0cade42aa608a031dd7426eb0 (patch) | |
tree | d18d55d44398ff73dbee4737e6880116c1a06bcb /doc | |
parent | 4994fcc32caa90eb25e9e7532c5ed195abb4bb95 (diff) | |
download | luajit-0eee70cd4d662bc0cade42aa608a031dd7426eb0.tar.gz luajit-0eee70cd4d662bc0cade42aa608a031dd7426eb0.tar.bz2 luajit-0eee70cd4d662bc0cade42aa608a031dd7426eb0.zip |
Add -b command line option to save/list bytecode.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/running.html | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/doc/running.html b/doc/running.html index bcc811c4..ecf6bba4 100644 --- a/doc/running.html +++ b/doc/running.html | |||
@@ -106,9 +106,34 @@ prints a short list of the available options. Please have a look at the | |||
106 | for details. | 106 | for details. |
107 | </p> | 107 | </p> |
108 | <p> | 108 | <p> |
109 | Two additional options control the behavior of LuaJIT: | 109 | LuaJIT has some additional options: |
110 | </p> | 110 | </p> |
111 | 111 | ||
112 | <h3 id="opt_b"><tt>-b[options] input output</tt></h3> | ||
113 | <p> | ||
114 | This option saves or lists bytecode. The following additional options | ||
115 | are accepted: | ||
116 | </p> | ||
117 | <ul> | ||
118 | <li><tt>-l</tt> — Only list bytecode.</li> | ||
119 | <li><tt>-s</tt> — Strip debug info (this is the default).</li> | ||
120 | <li><tt>-g</tt> — Keep debug info.</li> | ||
121 | <li><tt>-e chunk</tt> — Use chunk string as input.</li> | ||
122 | <li><tt>-</tt> (a single minus sign) — Use stdin as input and/or stdout as output.</li> | ||
123 | </ul> | ||
124 | <p> | ||
125 | Typical usage examples: | ||
126 | </p> | ||
127 | <pre class="code"> | ||
128 | luajit -b test.lua test.out # Save to test.out | ||
129 | luajit -bg test.lua test.out # Keep debug info | ||
130 | luajit -be "print('hello world') end" test.out # Save cmdline script | ||
131 | |||
132 | luajit -bl test.lua # List to stdout | ||
133 | luajit -bl test.lua test.txt # List to test.txt | ||
134 | luajit -ble "print('hello world') end" # List cmdline script | ||
135 | </pre> | ||
136 | |||
112 | <h3 id="opt_j"><tt>-j cmd[=arg[,arg...]]</tt></h3> | 137 | <h3 id="opt_j"><tt>-j cmd[=arg[,arg...]]</tt></h3> |
113 | <p> | 138 | <p> |
114 | This option performs a LuaJIT control command or activates one of the | 139 | This option performs a LuaJIT control command or activates one of the |