mirror of
https://github.com/Adorable-Catgirl/LuaComp.git
synced 2024-11-23 02:18:06 +11:00
whoops
This commit is contained in:
parent
6dd2dca097
commit
a62731e0bf
@ -1,11 +1,16 @@
|
|||||||
#compdef luacomp
|
#compdef luacomp
|
||||||
|
|
||||||
|
_luacomp_postproc() {
|
||||||
|
procs=( ${(@f)"$(luacomp --post-processors)"} )
|
||||||
|
compadd -a procs
|
||||||
|
}
|
||||||
|
|
||||||
_luacomp() {
|
_luacomp() {
|
||||||
local -a options=(
|
local -a options=(
|
||||||
{-h,--help}"[Show this help message and exit]"
|
{-h,--help}"[Show this help message and exit]"
|
||||||
{-O,--output}"[Output file]: :_files"
|
{-O,--output}"[Output file]: :_files"
|
||||||
{-m,--minifier}"[Sets the postprocessor (default\: none)]: :( ${(f)'luacomp --post-processors'} )"
|
{-m,--minifier}"[Sets the postprocessor]: :_luacomp_postproc"
|
||||||
{-x,--executable}"[Makes the script an executable (default\: current lua version)]: :_path_commands"
|
{-x,--executable}"[Makes the script an executable]: :_path_commands"
|
||||||
"--generator-code[Outputs only the code from the generator]"
|
"--generator-code[Outputs only the code from the generator]"
|
||||||
"--verbose[Verbose output]"
|
"--verbose[Verbose output]"
|
||||||
"--post-processors[Lists postprocessors]"
|
"--post-processors[Lists postprocessors]"
|
||||||
|
Loading…
Reference in New Issue
Block a user