aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/running.html27
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
106for details. 106for details.
107</p> 107</p>
108<p> 108<p>
109Two additional options control the behavior of LuaJIT: 109LuaJIT has some additional options:
110</p> 110</p>
111 111
112<h3 id="opt_b"><tt>-b[options] input output</tt></h3>
113<p>
114This option saves or lists bytecode. The following additional options
115are accepted:
116</p>
117<ul>
118<li><tt>-l</tt> &mdash; Only list bytecode.</li>
119<li><tt>-s</tt> &mdash; Strip debug info (this is the default).</li>
120<li><tt>-g</tt> &mdash; Keep debug info.</li>
121<li><tt>-e chunk</tt> &mdash; Use chunk string as input.</li>
122<li><tt>-</tt> (a single minus sign) &mdash; Use stdin as input and/or stdout as output.</li>
123</ul>
124<p>
125Typical usage examples:
126</p>
127<pre class="code">
128luajit -b test.lua test.out # Save to test.out
129luajit -bg test.lua test.out # Keep debug info
130luajit -be "print('hello world') end" test.out # Save cmdline script
131
132luajit -bl test.lua # List to stdout
133luajit -bl test.lua test.txt # List to test.txt
134luajit -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>
114This option performs a LuaJIT control command or activates one of the 139This option performs a LuaJIT control command or activates one of the