{"id":24755243,"url":"https://github.com/katzer/mruby-tiny-opt-parser","last_synced_at":"2025-06-25T02:06:22.863Z","repository":{"id":42198235,"uuid":"129388221","full_name":"katzer/mruby-tiny-opt-parser","owner":"katzer","description":"Command-line option analysis for mruby","archived":false,"fork":false,"pushed_at":"2024-09-17T07:16:11.000Z","size":27,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-02T23:57:02.903Z","etag":null,"topics":["argument-parser","mruby-gem","optparse"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/katzer.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-13T10:39:14.000Z","updated_at":"2024-10-05T23:55:20.000Z","dependencies_parsed_at":"2024-09-17T09:49:45.213Z","dependency_job_id":null,"html_url":"https://github.com/katzer/mruby-tiny-opt-parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/katzer/mruby-tiny-opt-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katzer%2Fmruby-tiny-opt-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katzer%2Fmruby-tiny-opt-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katzer%2Fmruby-tiny-opt-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katzer%2Fmruby-tiny-opt-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/katzer","download_url":"https://codeload.github.com/katzer/mruby-tiny-opt-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katzer%2Fmruby-tiny-opt-parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261789226,"owners_count":23209774,"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":["argument-parser","mruby-gem","optparse"],"created_at":"2025-01-28T12:37:53.327Z","updated_at":"2025-06-25T02:06:22.842Z","avatar_url":"https://github.com/katzer.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Command-line option analysis for mruby \u003cbr\u003e [![Build Status](https://travis-ci.com/katzer/mruby-tiny-opt-parser.svg?branch=master)](https://travis-ci.com/katzer/mruby-tiny-opt-parser) [![Maintainability](https://api.codeclimate.com/v1/badges/7d8bb5bc18ad8da8c3fc/maintainability)](https://codeclimate.com/github/katzer/mruby-tiny-opt-parser/maintainability)\n\nTiny option parser for [mruby][mruby] with __zero__ dependencies.\n\n```ruby\nparser = OptParser.new do |opts|\n  opts.on(:port, :int, 80) { |port| ... }\n  opts.on(:parallel, :bool, false, short: :a)\n  opts.on(:ip, :string, '127.0.0.1') { |ip| ... }\nend\n\nparser.parse(['--port', '8000', '-a', 'losthost', 'otherhost'])\n\nparser.opts # =\u003e { port: 8000, parallel: true, ip: '127.0.0.1' }\nparser.tail # =\u003e ['losthost', 'otherhost']\n```\n\n## Installation\n\nAdd the line below to your `build_config.rb`:\n\n```ruby\nMRuby::Build.new do |conf|\n  # ... (snip) ...\n  conf.gem 'mruby-tiny-opt-parser'\nend\n```\n\nOr add this line to your aplication's `mrbgem.rake`:\n\n```ruby\nMRuby::Gem::Specification.new('your-mrbgem') do |spec|\n  # ... (snip) ...\n  spec.add_dependency 'mruby-tiny-opt-parser'\nend\n```\n\n## Development\n\nClone the repo:\n    \n    $ git clone https://github.com/katzer/mruby-tiny-opt-parser.git \u0026\u0026 cd mruby-tiny-opt-parser/\n\nCompile the source:\n\n    $ rake compile\n\nRun the tests:\n\n    $ rake test\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/katzer/mruby-tiny-opt-parser.\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## Authors\n\n- Sebastián Katzer, Fa. appPlant GmbH\n\n## License\n\nThe mgem is available as open source under the terms of the [MIT License][license].\n\nMade with :yum: in Leipzig\n\n© 2018 [appPlant GmbH][appplant]\n\n[mruby]: https://github.com/mruby/mruby\n[license]: http://opensource.org/licenses/MIT\n[appplant]: www.appplant.de\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatzer%2Fmruby-tiny-opt-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkatzer%2Fmruby-tiny-opt-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatzer%2Fmruby-tiny-opt-parser/lists"}