{"id":19816912,"url":"https://github.com/rvm/extoptparse","last_synced_at":"2026-06-06T22:31:56.812Z","repository":{"id":56845262,"uuid":"99519570","full_name":"rvm/extoptparse","owner":"rvm","description":null,"archived":false,"fork":false,"pushed_at":"2017-08-07T10:27:07.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-05-17T09:49:47.692Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rvm.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":"2017-08-06T23:43:59.000Z","updated_at":"2017-08-07T01:49:11.000Z","dependencies_parsed_at":"2022-09-17T21:54:50.702Z","dependency_job_id":null,"html_url":"https://github.com/rvm/extoptparse","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rvm/extoptparse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvm%2Fextoptparse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvm%2Fextoptparse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvm%2Fextoptparse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvm%2Fextoptparse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rvm","download_url":"https://codeload.github.com/rvm/extoptparse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvm%2Fextoptparse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34002561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-06T02:00:07.033Z","response_time":107,"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":[],"created_at":"2024-11-12T10:11:02.927Z","updated_at":"2026-06-06T22:31:56.796Z","avatar_url":"https://github.com/rvm.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Extoptparse\n\n[![Gem Version](https://badge.fury.io/rb/extoptparse.png)](http://rubygems.org/gems/extoptparse)\n[![Code Climate](https://codeclimate.com/github/rvm/extoptparse.png)](https://codeclimate.com/github/rvm/extoptparse)\n[![Coverage Status](https://coveralls.io/repos/rvm/extoptparse/badge.png)](https://coveralls.io/r/rvm/extoptparse)\n[![Build Status](https://travis-ci.org/rvm/extoptparse.png)](https://travis-ci.org/rvm/extoptparse)\n[![Dependency Status](https://gemnasium.com/rvm/extoptparse.png)](https://gemnasium.com/rvm/extoptparse)\n[![Inline docs](http://inch-ci.org/github/rvm/extoptparse.png)](http://inch-ci.org/github/rvm/extoptparse)\n[![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/github/rvm/extoptparse/master/frames)\n[![Github Code](http://img.shields.io/badge/github-code-blue.svg)](https://github.com/rvm/extoptparse)\n[![License](http://www.gnu.org/graphics/agplv3-88x31.png)](http://www.gnu.org/licenses/agpl.html)\n\nAdd grouping to Ruby's `OptionParser`\n\nExtoptparse works with *ruby 1.9.3+*.\n\n## Usage\n\n```ruby\np = ExtOptParse.new\np.group(:group1) { p.on(\"-a\", \"A\") }\np.group(:group2) { p.on(\"-b\", \"B\") }\np.group(:group1) { p.on(\"-c\", \"C\") }\nputs p.help\n       ...\n       -b                               B\n       -a                               A\n       -c                               C\n       ...\n```\n\n## Testing\n\n```bash\nrake\n```\n\n## License\n\nCopyright 2017 Michal Papis \u003cmpapis@gmail.com\u003e\n\nThis file is part of extoptparse.\n\nExtoptparse is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published\nby the Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nExtoptparse is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU Affero General Public License for more details.\n\nYou should have received a copy of the GNU Affero General Public License\nalong with extoptparse.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvm%2Fextoptparse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frvm%2Fextoptparse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvm%2Fextoptparse/lists"}