Skip to content
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

Release 3.0.2 #77

Merged
merged 2 commits into from
Dec 18, 2023
Merged
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
48 changes: 48 additions & 0 deletions rockspecs/lua_cliargs-3.0.2-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
local package_name = "lua_cliargs"
local package_version = "3.0.2"
local rockspec_revision = "1"
local github_account_name = "lunarmodules"
local github_repo_name = package_name

package = package_name
version = package_version .. "-" .. rockspec_revision

source = {
url = "git+https://github.com/" .. github_account_name .. "/" .. github_repo_name .. ".git"
}
if package_version == "dev" then source.branch = "master" else source.tag = "v" .. package_version end

description = {
summary = "A command-line argument parsing module for Lua",
detailed = [[
This module adds support for accepting CLI arguments easily using multiple
notations and argument types.
cliargs allows you to define required, optional, and flag arguments.
]],
license = "MIT"
}

dependencies = {
"lua >= 5.1"
}

build = {
type = "builtin",
modules = {
["cliargs"] = "src/cliargs.lua",
["cliargs.config_loader"] = "src/cliargs/config_loader.lua",
["cliargs.constants"] = "src/cliargs/constants.lua",
["cliargs.core"] = "src/cliargs/core.lua",
["cliargs.parser"] = "src/cliargs/parser.lua",
["cliargs.printer"] = "src/cliargs/printer.lua",
["cliargs.utils.disect"] = "src/cliargs/utils/disect.lua",
["cliargs.utils.disect_argument"] = "src/cliargs/utils/disect_argument.lua",
["cliargs.utils.filter"] = "src/cliargs/utils/filter.lua",
["cliargs.utils.lookup"] = "src/cliargs/utils/lookup.lua",
["cliargs.utils.shallow_copy"] = "src/cliargs/utils/shallow_copy.lua",
["cliargs.utils.split"] = "src/cliargs/utils/split.lua",
["cliargs.utils.trim"] = "src/cliargs/utils/trim.lua",
["cliargs.utils.wordwrap"] = "src/cliargs/utils/wordwrap.lua",
}
}
4 changes: 2 additions & 2 deletions src/cliargs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ function cli:cleanup()
cli = nil
end

cli.VERSION = "3.0-2"
cli.VERSION = "3.0.2"

return cli
return cli
Loading