From 0eee70cd4d662bc0cade42aa608a031dd7426eb0 Mon Sep 17 00:00:00 2001
From: Mike Pall
Date: Mon, 13 Jun 2011 01:04:23 +0200
Subject: Add -b command line option to save/list bytecode.
---
doc/running.html | 27 ++++++++++++++++++++++++++-
1 file changed, 26 insertions(+), 1 deletion(-)
(limited to 'doc/running.html')
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
for details.
-Two additional options control the behavior of LuaJIT:
+LuaJIT has some additional options:
+-b[options] input output
+
+This option saves or lists bytecode. The following additional options
+are accepted:
+
+
+- -l — Only list bytecode.
+- -s — Strip debug info (this is the default).
+- -g — Keep debug info.
+- -e chunk — Use chunk string as input.
+- - (a single minus sign) — Use stdin as input and/or stdout as output.
+
+
+Typical usage examples:
+
+
+luajit -b test.lua test.out # Save to test.out
+luajit -bg test.lua test.out # Keep debug info
+luajit -be "print('hello world') end" test.out # Save cmdline script
+
+luajit -bl test.lua # List to stdout
+luajit -bl test.lua test.txt # List to test.txt
+luajit -ble "print('hello world') end" # List cmdline script
+
+
-j cmd[=arg[,arg...]]
This option performs a LuaJIT control command or activates one of the
--
cgit v1.2.3-55-g6feb