-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,6 @@ function cli:cleanup() | |
cli = nil | ||
end | ||
|
||
cli.VERSION = "3.0" | ||
cli.VERSION = "3.0.2" | ||
|
||
return cli |