-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
feat: add --help #3065
feat: add --help #3065
Conversation
d90027e
to
695f924
Compare
Are there any plans on how this help page should be maintained / synced? For example:
but then
might even be simplerthat -- Import the platform module to access the platform.os property
local platform = require "bee.platform"
-- Define the URL to be opened
local WIKI_URL = "https://luals.github.io/wiki/usage/"
-- Open the URL based on the current platform
if platform.os == "windows" then
-- On Windows, use the 'start' command to open the URL
os.execute("start " .. WIKI_URL)
elseif platform.os == "macos" then
-- On macOS, use the 'open' command to open the URL
os.execute("open " .. WIKI_URL)
elseif platform.os == "linux" then
-- On Linux, use the 'xdg-open' command to open the URL
os.execute("xdg-open " .. WIKI_URL)
else
-- For other platforms, print the URL as a reference
print("Please refer to: " .. WIKI_URL)
end |
The information maintained in this repo should be the source. This is where it is implemented.
No I don't think so.
Honestly this sounds like a bad idea. I don't know a single tool that does this, and I would dislike any tool that does. Having a usable Maintenance of this information can be improved later, however I didn't do that here because I don't know if this will be accepted so I've kept the diff down. In general, the cli code in this tool needs a lot of work. This is just a start. |
please resolve conflicts, I have fix the workflow |
That makes it clear 👍
You're right, that's totally fine at this stage. |
I'd say the other way round is preferable. The repository (and each branch of it) should contain a recent help message. Including development branches. This means that the help message in the source code is updated frequently. While the wiki page should contain the help for stable releases only. |
Content copied from https://luals.github.io/wiki/usage/
@lewis6991 |
Sorry, I don't have notifications turned on for that fork. |
No worries. I repeated the PR against LuaLS:master #3113 |
Content copied from https://luals.github.io/wiki/usage/
Preview