{"id":28840628,"url":"https://github.com/britzl/cmdline","last_synced_at":"2025-10-16T11:26:28.217Z","repository":{"id":21395108,"uuid":"24712933","full_name":"britzl/cmdline","owner":"britzl","description":"A simple command line argument parser for Lua","archived":false,"fork":false,"pushed_at":"2015-01-26T17:19:28.000Z","size":156,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-19T15:09:51.025Z","etag":null,"topics":["lua"],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/britzl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-02T09:05:17.000Z","updated_at":"2019-06-13T08:20:45.000Z","dependencies_parsed_at":"2022-07-30T04:47:55.780Z","dependency_job_id":null,"html_url":"https://github.com/britzl/cmdline","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/britzl/cmdline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/britzl%2Fcmdline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/britzl%2Fcmdline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/britzl%2Fcmdline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/britzl%2Fcmdline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/britzl","download_url":"https://codeload.github.com/britzl/cmdline/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/britzl%2Fcmdline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279183340,"owners_count":26121380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lua"],"created_at":"2025-06-19T15:09:48.124Z","updated_at":"2025-10-16T11:26:28.195Z","avatar_url":"https://github.com/britzl.png","language":"Lua","readme":"cmdline\n=======\nA simple command line argument parser for Lua. The command line parser supports both long options (--foobar) and short options (-f).\n\nlong options\n------------\n* Strings of form '--OPTION=VALUE' are parsed to { OPTION = 'VALUE' }.\n* Strings of form '--OPTION' are parsed to { OPTION = true }.\n* Multiple '--OPTION=VALUE' are merged into { OPTION = { 'VALUE', 'VALUE', ... } }.\n\nshort options\n-------------\n* Strings of form '-O=VALUE' are parsed to { O = 'VALUE' }.\n* Strings of form '-O' are parsed to { O = true }.\n* Multiple '-O=VALUE' are merged into { O = { 'VALUE', 'VALUE', ... } }.\n\nargument termination\n--------------------\nThe argument '--' terminates all options; any following arguments are treated as non-option arguments, even if they begin with a hyphen.\n\nusage\n=====\n```\nlocal cmdline = require(\"cmdline\")\n\nlocal options, arguments = cmdline.parse(...)\n```\n\nacknowledgement\n===============\nBased on the [luvit-cmdline parser](https://github.com/dvv/luvit-cmdline)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbritzl%2Fcmdline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbritzl%2Fcmdline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbritzl%2Fcmdline/lists"}