From 28ba7d6a06a668c3b4424bdd86a91d9d6b24dc0b Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Tue, 12 Dec 2023 15:19:35 +0300 Subject: [PATCH] chore: Release v3.0.2 --- rockspecs/lua_cliargs-3.0.2-1.rockspec | 48 ++++++++++++++++++++++++++ src/cliargs.lua | 2 +- 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 rockspecs/lua_cliargs-3.0.2-1.rockspec diff --git a/rockspecs/lua_cliargs-3.0.2-1.rockspec b/rockspecs/lua_cliargs-3.0.2-1.rockspec new file mode 100644 index 0000000..fa010a7 --- /dev/null +++ b/rockspecs/lua_cliargs-3.0.2-1.rockspec @@ -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", + } +} diff --git a/src/cliargs.lua b/src/cliargs.lua index ba91490..bbcecf9 100644 --- a/src/cliargs.lua +++ b/src/cliargs.lua @@ -27,6 +27,6 @@ function cli:cleanup() cli = nil end -cli.VERSION = "3.0" +cli.VERSION = "3.0.2" return cli