lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

add a `--help`command

Open teto opened this issue 2 years ago • 1 comments

I was trying to debug a lua-language-server command I found on a CI pipeline but I was not able to make sense of the command line without internet access and especially access to https://github.com/LuaLS/lua-language-server/wiki/Configuration-File

How is one supposed to discover the arguments ? Most programs I know support a --help argument that presents the available flags/commands. I wish we could have one. Also it avoids the problem of documentation going out of sync: the wiki page mentions check as a boolean but my version 3.6.19 says it expects a string

teto avatar May 04 '23 16:05 teto

I was going to create a similar ticket, I am glad I searched before otherwise everyone would know I can't remember anything: On a related note, on 3.7.3, the lua-language-server doesn't complain or warn when seeing an unknown option lua-language-server --toto which can be surprising ("why my option does nothing" and you just made a typo)

teto avatar Dec 05 '23 14:12 teto