{"id":28726881,"url":"https://github.com/docopt/docopt.lua","last_synced_at":"2025-06-15T13:09:29.837Z","repository":{"id":3553054,"uuid":"4613917","full_name":"docopt/docopt.lua","owner":"docopt","description":null,"archived":false,"fork":false,"pushed_at":"2012-09-09T12:13:16.000Z","size":116,"stargazers_count":37,"open_issues_count":1,"forks_count":4,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-05-09T19:19:22.913Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/docopt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-10T09:21:18.000Z","updated_at":"2021-07-09T02:06:40.000Z","dependencies_parsed_at":"2022-07-28T21:18:51.401Z","dependency_job_id":null,"html_url":"https://github.com/docopt/docopt.lua","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/docopt/docopt.lua","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docopt%2Fdocopt.lua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docopt%2Fdocopt.lua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docopt%2Fdocopt.lua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docopt%2Fdocopt.lua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/docopt","download_url":"https://codeload.github.com/docopt/docopt.lua/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docopt%2Fdocopt.lua/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259981475,"owners_count":22941149,"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","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":[],"created_at":"2025-06-15T13:09:27.999Z","updated_at":"2025-06-15T13:09:29.819Z","avatar_url":"https://github.com/docopt.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Work In Progress\n\nThis code is still under development, and doesn't work yet.\n\n# Lua Port of the docopt Command Line Processor\n\n[docopt](http://docopt.org) creates _beautiful_ command-line interfaces.\n\ndocopt is a parser for program command line help messages.  It will use\nthe help message itself to validate the arguments passed into the\nprogram.  And from that it will generate a handy table of the\narguments.  Create the nicely formatted help message, and then let\ndocopt take care of the rest!\n\nThis is the [Lua](http://www.lua.org) port of the original Python\nimplementation.\n\n# Basic Usage\n\nPut the docopt.lua file in your Lua modules search path.\n\nThen in your main code (in this case `simple_find.lua`) put:\n\n```lua\nlocal DOC = require 'docopt'  -- Any local name is fine.\n\nlocal argument_help = [[\nSimple Find Command.\n\nUsage:\n  simple_find.lua dir [\u003cdirname\u003e]\n  simple_find.lua file [filename]\n\nOptions:\n  -h --help         Show this screen.\n  --version         Show the program version.\n  -r --recursive    Recursively search subdirectories too.\n]]\n\nlocal processed_args = DOC.docopt(argument_help, arg)\n\nif processsed_args.dir then\n    -- Directory name search\nelseif processsed_args.file then\n    -- File name search\nend\n```\n\n\n# Dependencies\n\ndocopt.lua does not require any external libraries, and is compatible\nwith Lua 5.1 and 5.2.\n\n# Copyright and License\n\nThis project is distributed under the \n[MIT License](http://www.opensource.org/licenses/mit-license.html), \nreproduced below:\n```\nCopyright (c) 2012 Vladimir Keleshev \u003cvladimir@keleshev.com\u003e, \n                   James Graves \u003cjames.c.graves.jr@gmail.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be included\nin all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n``` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocopt%2Fdocopt.lua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdocopt%2Fdocopt.lua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocopt%2Fdocopt.lua/lists"}