https://github.com/ManageIQ/optimist
Optimist is a commandline option parser for Ruby that just gets out of your way.
https://github.com/ManageIQ/optimist
Keywords from Contributors
rubygems activerecord mvc activejob rubocop code-formatter static-code-analysis rspec rack webdriver
Last synced: about 8 hours ago
JSON representation
Repository metadata
Optimist is a commandline option parser for Ruby that just gets out of your way.
- Host: GitHub
- URL: https://github.com/ManageIQ/optimist
- Owner: ManageIQ
- License: mit
- Created: 2014-09-19T20:59:29.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2025-12-09T19:29:04.000Z (3 months ago)
- Last Synced: 2026-02-24T14:18:20.811Z (7 days ago)
- Language: Ruby
- Homepage: https://manageiq.org/optimist/
- Size: 389 KB
- Stars: 257
- Watchers: 11
- Forks: 34
- Open Issues: 28
- Releases: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
README.md
optimist
http://manageiq.github.io/optimist/
Documentation
- Quickstart: See
Optimist.optionsand thenOptimist::Parser#opt. - Examples: http://manageiq.github.io/optimist/.
- Wiki: http://github.com/ManageIQ/optimist/wiki
Description
Optimist is a commandline option parser for Ruby that just gets out of your way.
One line of code per option is all you need to write. For that, you get a nice
automatically-generated help page, robust option parsing, and sensible defaults
for everything you don't specify.
Features
- Dirt-simple usage.
- Single file. Throw it in lib/ if you don't want to make it a Rubygem dependency.
- Sensible defaults. No tweaking necessary, much tweaking possible.
- Support for long options, short options, subcommands, and automatic type validation and
conversion. - Automatic help message generation, wrapped to current screen width.
Requirements
- A burning desire to write less code.
Install
- gem install optimist
Synopsis
require 'optimist'
opts = Optimist::options do
opt :monkey, "Use monkey mode" # flag --monkey, default false
opt :name, "Monkey name", :type => :string # string --name <s>, default nil
opt :num_limbs, "Number of limbs", :default => 4 # integer --num-limbs <i>, default to 4
end
p opts # a hash: { :monkey=>false, :name=>nil, :num_limbs=>4, :help=>false }
License
Copyright © 2008-2014 William Morgan.
Copyright © 2014 Red Hat, Inc.
Optimist is released under the MIT License.
Owner metadata
- Name: ManageIQ
- Login: ManageIQ
- Email: contact@manageiq.org
- Kind: organization
- Description: ManageIQ Open-Source Management Platform
- Website: https://manageiq.org
- Location: United States of America
- Twitter: manageiq
- Company:
- Icon url: https://avatars.githubusercontent.com/u/1125575?v=4
- Repositories: 197
- Last ynced at: 2023-04-09T06:01:37.726Z
- Profile URL: https://github.com/ManageIQ
GitHub Events
Total
- Delete event: 2
- Pull request event: 16
- Issues event: 17
- Watch event: 9
- Issue comment event: 15
- Push event: 12
- Pull request review comment event: 1
- Pull request review event: 5
- Create event: 2
Last Year
- Delete event: 2
- Pull request event: 9
- Issues event: 14
- Watch event: 1
- Issue comment event: 8
- Push event: 7
- Pull request review event: 4
- Create event: 1
Committers metadata
Last synced: 3 days ago
Total Commits: 314
Total Committers: 37
Avg Commits per committer: 8.486
Development Distribution Score (DDS): 0.768
Commits in past year: 9
Committers in past year: 3
Avg Commits per committer in past year: 3.0
Development Distribution Score (DDS) in past year: 0.333
| Name | Commits | |
|---|---|---|
| Keenan Brock | k****n@t****t | 73 |
| William Morgan | w****p@m****t | 70 |
| Ben Bowers | n****s@g****m | 42 |
| Jason Frey | f****9@g****m | 35 |
| William Morgan | w****n@m****t | 30 |
| William Morgan | w****b@m****t | 10 |
| Andrew Khoury | a****y@l****m | 5 |
| Nathan Zook | n****k@w****m | 4 |
| Jonas Tingeborn | t****n@g****m | 4 |
| Ohad Lutzky | o****d@l****t | 4 |
| Peter Goldstein | p****n@g****m | 3 |
| renovate[bot] | 2****] | 3 |
| Rachel Wall | s****a@g****m | 2 |
| Joe Rafaniello | j****e@r****m | 2 |
| Nick LaMuro | n****o@g****m | 2 |
| OKURA Masafumi | m****8@g****m | 2 |
| Orien Madgwick | 4****n | 2 |
| Alessandro Zummo | 1****o | 2 |
| whitesource-bolt-for-github[bot] | 4****] | 1 |
| student | b****r@p****t | 1 |
| cprice | c****s@p****m | 1 |
| clxy | j****y@h****m | 1 |
| Aryeh Benjamin Hillman | a****h@l****m | 1 |
| Michael Edgar | m****r@d****u | 1 |
| Nick Griffiths | n****k@m****m | 1 |
| Will Fitzgerald | w****d@p****m | 1 |
| Tuomas Kareinen | t****e@g****m | 1 |
| Prasanna.Natarajan | p****a@n****n | 1 |
| Michael Witrant | m****e@l****r | 1 |
| Mamoru TASAKA | m****a@f****g | 1 |
| and 7 more... | ||
Committer domains:
- masanjin.net: 3
- thebrocks.net: 1
- whitepages.com: 1
- lutzky.net: 1
- gmx.com: 1
- redhat.com: 1
- pierian-spring.net: 1
- puppetlabs.com: 1
- looker.com: 1
- dartmouth.edu: 1
- mediasp.com: 1
- pobox.com: 1
- npras.in: 1
- lepton.fr: 1
- fedoraproject.org: 1
- topbug.net: 1
- echographia.com: 1
- stripe.com: 1
Issue and Pull Request metadata
Last synced: 10 days ago
Total issues: 63
Total pull requests: 125
Average time to close issues: 10 months
Average time to close pull requests: 4 months
Total issue authors: 34
Total pull request authors: 21
Average comments per issue: 2.71
Average comments per pull request: 2.04
Merged pull request: 100
Bot issues: 19
Bot pull requests: 5
Past year issues: 14
Past year pull requests: 14
Past year average time to close issues: 7 days
Past year average time to close pull requests: about 19 hours
Past year issue authors: 3
Past year pull request authors: 3
Past year average comments per issue: 0.0
Past year average comments per pull request: 0.14
Past year merged pull request: 10
Past year bot issues: 12
Past year bot pull requests: 2
Top Issue Authors
- mend-bolt-for-github[bot] (18)
- nanobowers (7)
- Fryguy (3)
- rlpowell (2)
- ignatenkobrain (2)
- rubyFeedback (2)
- ioquatix (2)
- HerbCSO (1)
- KINGSABRI (1)
- hansuiloe (1)
- renovate[bot] (1)
- jaganaath (1)
- tiennou (1)
- graaff (1)
- jaredbeck (1)
Top Pull Request Authors
- Fryguy (33)
- kbrock (30)
- nanobowers (28)
- akhoury6 (8)
- renovate[bot] (4)
- petergoldstein (3)
- orien (3)
- okuramasafumi (2)
- jrafanie (2)
- metcalf (1)
- matthewcummings (1)
- npras (1)
- Solistra (1)
- aried3r (1)
- wishdev (1)
Top Issue Labels
- Mend: dependency security vulnerability (18)
- bug (11)
- help wanted (11)
- enhancement (7)
- question (2)
- Mend: dependency dashboard (1)
Top Pull Request Labels
- enhancement (24)
- dependencies (13)
- test (13)
- developer (5)
- bug (5)
- cleanup (2)
- technical debt (2)
- documentation (2)
- help wanted (2)
- wip (1)
- refactoring (1)
Package metadata
- Total packages: 14
-
Total downloads:
- rubygems: 378,894,620 total
- Total docker downloads: 1,167,034,276
- Total dependent packages: 951 (may contain duplicates)
- Total dependent repositories: 17,619 (may contain duplicates)
- Total versions: 94
- Total maintainers: 3
gem.coop: optimist
Optimist is a commandline option parser for Ruby that just gets out of your way. One line of code per option is all you need to write. For that, you get a nice automatically-generated help page, robust option parsing, command subcompletion, and sensible defaults for everything you don't specify.
- Homepage: http://manageiq.github.io/optimist/
- Documentation: http://www.rubydoc.info/gems/optimist/
- Licenses: MIT
- Latest release: 3.2.1 (published 12 months ago)
- Last Synced: 2026-03-02T06:31:56.149Z (1 day ago)
- Versions: 5
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 126,142,966 Total
- Docker Downloads: 553,536,628
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.064%
- Downloads: 0.192%
- Maintainers (3)
gem.coop: trollop
Trollop is a commandline option parser for Ruby that just gets out of your way. **DEPRECATION** This gem has been renamed to optimist and will no longer be supported. Please switch to optimist as soon as possible.
- Homepage: http://manageiq.github.io/optimist/
- Documentation: http://www.rubydoc.info/gems/trollop/
- Licenses: MIT
- Latest release: 2.9.10 (published over 6 years ago)
- Last Synced: 2026-02-28T15:00:51.946Z (3 days ago)
- Versions: 32
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 63,317,047 Total
- Docker Downloads: 29,980,510
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.144%
- Downloads: 0.432%
- Maintainers (3)
rubygems.org: optimist
Optimist is a commandline option parser for Ruby that just gets out of your way. One line of code per option is all you need to write. For that, you get a nice automatically-generated help page, robust option parsing, command subcompletion, and sensible defaults for everything you don't specify.
- Homepage: http://manageiq.github.io/optimist/
- Documentation: http://www.rubydoc.info/gems/optimist/
- Licenses: MIT
- Latest release: 3.2.1 (published 12 months ago)
- Last Synced: 2026-02-28T22:01:07.261Z (3 days ago)
- Versions: 5
- Dependent Packages: 137
- Dependent Repositories: 3,701
- Downloads: 126,116,785 Total
- Docker Downloads: 553,536,628
-
Rankings:
- Downloads: 0.201%
- Docker downloads count: 0.216%
- Dependent packages count: 0.257%
- Dependent repos count: 0.518%
- Average: 1.52%
- Stargazers count: 3.641%
- Forks count: 4.285%
- Maintainers (3)
rubygems.org: trollop
Trollop is a commandline option parser for Ruby that just gets out of your way. **DEPRECATION** This gem has been renamed to optimist and will no longer be supported. Please switch to optimist as soon as possible.
- Homepage: http://manageiq.github.io/optimist/
- Documentation: http://www.rubydoc.info/gems/trollop/
- Licenses: MIT
- Latest release: 2.9.10 (published over 6 years ago)
- Last Synced: 2026-03-01T06:03:35.306Z (3 days ago)
- Versions: 32
- Dependent Packages: 814
- Dependent Repositories: 13,918
- Downloads: 63,317,822 Total
- Docker Downloads: 29,980,510
-
Rankings:
- Dependent packages count: 0.058%
- Dependent repos count: 0.295%
- Downloads: 0.341%
- Docker downloads count: 0.838%
- Average: 1.576%
- Stargazers count: 3.641%
- Forks count: 4.285%
- Maintainers (3)
proxy.golang.org: github.com/ManageIQ/optimist
- Homepage:
- Documentation: https://pkg.go.dev/github.com/ManageIQ/optimist#section-documentation
- Licenses: mit
- Latest release: v3.2.1+incompatible (published 12 months ago)
- Last Synced: 2026-02-26T11:01:37.778Z (5 days ago)
- Versions: 11
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 6.999%
- Average: 8.173%
- Dependent repos count: 9.346%
debian-13: ruby-optimist
- Homepage: https://manageiq.github.io/optimist/
- Documentation: https://packages.debian.org/trixie/ruby-optimist
- Licenses:
- Latest release: 3.1.0-2 (published 19 days ago)
- Last Synced: 2026-02-13T13:18:10.224Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-11: ruby-optimist
- Homepage: http://manageiq.github.io/optimist/
- Documentation: https://packages.debian.org/bullseye/ruby-optimist
- Licenses:
- Latest release: 3.0.0-2 (published 21 days ago)
- Last Synced: 2026-02-13T08:23:15.148Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-12: ruby-optimist
- Homepage: http://manageiq.github.io/optimist/
- Documentation: https://packages.debian.org/bookworm/ruby-optimist
- Licenses:
- Latest release: 3.0.0-2 (published 19 days ago)
- Last Synced: 2026-02-12T23:37:03.220Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
Dependencies
- chronic >= 0 development
- manageiq-style >= 0 development
- minitest ~> 5.4.3 development
- rake >= 10.0 development
- actions/checkout v2 composite
- ruby/setup-ruby v1 composite
Score: 30.42231041309969