-
Notifications
You must be signed in to change notification settings - Fork 388
Support Lua CLI options #1265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
LuaJIT does the same:
We should at least support the common options of Lua and LuaJIT. |
Needed for ZeroBraneStudio:
|
Approved by rtsisyk |
This feature is nice to have for #2067. |
getopt_long() is available on all supported platforms. Get rid of legacy gopt and use getopt_long(). Incompatible changes: * `tarantool --version --no-such-option` printed "unrecognized option '--no-such-option'", now it displays version. `tarantool --no-such-option --version` still prints an error message. Needed for #1265
`tarantool -i SCRIPT` forces Tarantool to enter into interactive mode after executing SCRIPT or stdin. A part of #1265
-e EXPR - execute string 'EXPR -l NAME - require library 'NAME' A part of #1265
`tarantool -` now executes stdin instead of trying open "./-" script. A part of #1265
Finally fix compatibility with Lua 5.1 command-line options. Closes #1265
getopt_long() is available on all supported platforms. Get rid of legacy gopt and use getopt_long(). Incompatible changes: * `tarantool --version --no-such-option` printed "unrecognized option '--no-such-option'", now it displays version. `tarantool --no-such-option --version` still prints an error message. Needed for #1265
`tarantool -i SCRIPT` forces Tarantool to enter into interactive mode after executing SCRIPT or stdin. A part of #1265
-e EXPR - execute string 'EXPR -l NAME - require library 'NAME' A part of #1265
`tarantool -` now executes stdin instead of trying open "./-" script. A part of #1265
Finally fix compatibility with Lua 5.1 command-line options. Closes #1265
1.7.4-478-g8c2cf77ea |
Corresponding
lua
manual:To add more compatibility with Lua (e.g. to support
luarocks
Makefile)The text was updated successfully, but these errors were encountered: