Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions core/modules/help/_register.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
commandLineOption {
trigger = '--help',
description = 'Display this information',
execute = function()
local help = require('help')
help.printHelp()
end
}
10 changes: 1 addition & 9 deletions core/modules/main/core_options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

local m = select(1, ...)

register('help')

commandLineOption {
trigger = '--file',
Expand All @@ -12,15 +13,6 @@ commandLineOption {
default = m.PROJECT_SCRIPT_NAME
}

commandLineOption { -- TODO: Move to help module; use `register()`
trigger = '--help',
description = 'Display this information',
execute = function()
local help = require('help')
help.printHelp()
end
}

commandLineOption {
trigger = '--scripts',
description = "Search for additional scripts on the given path",
Expand Down