commit - 0dcf675952fbb76d8cfb6de30b680451d56cdf43
commit + 137e915612b9b7efd7622fe3109fcdbc5f0b0076
blob - 36928c29d6d021dc8fcc7d625f5d0194c3ddae70
blob + c41cf670769991efe2525f2880b0898c0672a1f9
--- test/box-py/args.result
+++ test/box-py/args.result
arg[3] => 3
arg[4] => --help
--b
-Save LuaJIT bytecode: luajit -b[options] input output
- -l Only list bytecode.
- -s Strip debug info (default).
- -g Keep debug info.
- -n name Set module name (default: auto-detect from input name).
- -t type Set output file type (default: auto-detect from output name).
- -a arch Override architecture for object files (default: native).
- -o os Override OS for object files (default: native).
- -e chunk Use chunk string as input.
- -- Stop handling options.
- - Use stdin as input and/or stdout as output.
-
-File types: c h obj o raw (default)
--bl -e ''
--- BYTECODE -- "":0-1
-0001 RET0 0 1
-
--b -l -e ''
--- BYTECODE -- "":0-1
-0001 RET0 0 1
-
--b -e '' output
--jon -e ''
--j on -e ''
blob - 0f6a7e1c15db4d001970007a8b98dd80b30bbba1
blob + 694c53989d3ca6d605f7871e636b4b4f45608020
--- test/box-py/args.test.py
+++ test/box-py/args.test.py
script + \
" 1 2 3 --help")
-b_cmds = ["-b", "-bl -e ''", "-b -l -e ''", "-b -e '' output"]
-for cmd in b_cmds:
- res = server.test_option_get(cmd, silent=True)
- print(cmd)
- print(res, end='')
-
-j_cmds = ["-jon -e ''", "-j on -e ''"]
-for cmd in j_cmds:
- res = server.test_option_get(cmd, silent=True)
- assert res == ""
- print(cmd)
-
sys.stdout.clear_all_filters()