{"id":16859029,"url":"https://github.com/connoratherton/minimist","last_synced_at":"2025-03-18T14:08:45.656Z","repository":{"id":30479317,"uuid":"34033385","full_name":"ConnorAtherton/minimist","owner":"ConnorAtherton","description":"A tiny ruby ARGV parser.","archived":false,"fork":false,"pushed_at":"2022-12-02T23:20:46.000Z","size":180,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-29T07:42:33.562Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/ConnorAtherton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-16T03:58:58.000Z","updated_at":"2015-05-09T19:34:30.000Z","dependencies_parsed_at":"2023-01-14T17:02:24.792Z","dependency_job_id":null,"html_url":"https://github.com/ConnorAtherton/minimist","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnorAtherton%2Fminimist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnorAtherton%2Fminimist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnorAtherton%2Fminimist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnorAtherton%2Fminimist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ConnorAtherton","download_url":"https://codeload.github.com/ConnorAtherton/minimist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244236080,"owners_count":20420759,"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":"2024-10-13T14:15:57.898Z","updated_at":"2025-03-18T14:08:45.637Z","avatar_url":"https://github.com/ConnorAtherton.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minimist ![Build Status](https://api.travis-ci.org/ConnorAtherton/minimist.svg)\n\nA tiny ruby ARGV parser.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'minimist'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install minimist\n\n## Usage\n\nThis isn't designed to be as fully featured as things like OptionParser and Trollop.\nI just wanted to get at cli arguments without having to use a fully-featured DSL to specify\nexactly what I needed.\n\nIt accepts a string array and returns a hash containing commands and options.\n\n```ruby\nMinimist.parse(\"parse this --with=2 -asbd -n4 --no-changes --send two\".split(\" \"))\n\n=\u003e {\n  :commands=\u003e[\"parse\", \"this\"],\n  :options=\u003e {\n    :with=\u003e\"2\",\n    :a=\u003etrue,\n    :s=\u003etrue,\n    :b=\u003etrue,\n    :d=\u003etrue,\n    :n=\u003e\"4\",\n    :changes=\u003efalse,\n    :send=\u003e\"two\"\n  }\n}\n```\n\n## Contributing\n\nCreate a pr discussing your change and make sure to add a test for your feature :)\n\n1. Fork it ( https://github.com/[my-github-username]/minimist/fork )\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 a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnoratherton%2Fminimist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconnoratherton%2Fminimist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnoratherton%2Fminimist/lists"}