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 rack rspec webdriver
Last synced: about 20 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: 2026-03-20T20:42:51.000Z (2 months ago)
- Last Synced: 2026-05-18T23:39:43.313Z (5 days ago)
- Language: Ruby
- Homepage: https://manageiq.org/optimist/
- Size: 391 KB
- Stars: 257
- Watchers: 10
- Forks: 34
- Open Issues: 33
- 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: 17
- Issues event: 27
- Watch event: 9
- Issue comment event: 18
- 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: 4
- Issues event: 16
- Issue comment event: 3
- Push event: 3
- Pull request review event: 1
Committers metadata
Last synced: 1 day ago
Total Commits: 315
Total Committers: 37
Avg Commits per committer: 8.514
Development Distribution Score (DDS): 0.768
Commits in past year: 5
Committers in past year: 3
Avg Commits per committer in past year: 1.667
Development Distribution Score (DDS) in past year: 0.6
| 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 | 36 |
| 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: 3 days ago
Total issues: 68
Total pull requests: 125
Average time to close issues: 9 months
Average time to close pull requests: 4 months
Total issue authors: 34
Total pull request authors: 21
Average comments per issue: 2.68
Average comments per pull request: 2.04
Merged pull request: 101
Bot issues: 24
Bot pull requests: 5
Past year issues: 16
Past year pull requests: 4
Past year average time to close issues: 5 months
Past year average time to close pull requests: 2 days
Past year issue authors: 2
Past year pull request authors: 3
Past year average comments per issue: 0.69
Past year average comments per pull request: 0.0
Past year merged pull request: 4
Past year bot issues: 15
Past year bot pull requests: 2
Top Issue Authors
- mend-bolt-for-github[bot] (23)
- 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 (23)
- help wanted (11)
- bug (11)
- enhancement (7)
- question (2)
- Mend: dependency dashboard (1)
Top Pull Request Labels
- enhancement (24)
- test (13)
- dependencies (13)
- bug (5)
- developer (5)
- help wanted (2)
- cleanup (2)
- technical debt (2)
- documentation (2)
- refactoring (1)
- wip (1)
Package metadata
- Total packages: 14
-
Total downloads:
- rubygems: 387,067,261 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 about 1 year ago)
- Last Synced: 2026-05-22T10:31:04.642Z (1 day ago)
- Versions: 5
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 129,655,080 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-05-22T06:31:04.074Z (2 days ago)
- Versions: 32
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 63,884,452 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 about 1 year ago)
- Last Synced: 2026-05-21T23:01:14.357Z (2 days ago)
- Versions: 5
- Dependent Packages: 137
- Dependent Repositories: 3,701
- Downloads: 129,635,767 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-05-23T01:31:18.639Z (about 24 hours ago)
- Versions: 32
- Dependent Packages: 814
- Dependent Repositories: 13,918
- Downloads: 63,891,962 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 about 1 year ago)
- Last Synced: 2026-05-21T04:01:42.322Z (3 days ago)
- Versions: 11
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 6.999%
- Average: 8.173%
- Dependent repos count: 9.346%
ubuntu-24.10: ruby-optimist
- Homepage: https://manageiq.github.io/optimist/
- Licenses:
- Latest release: 3.1.0-1 (published 3 months ago)
- Last Synced: 2026-03-13T12:14:56.429Z (2 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
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 3 months ago)
- Last Synced: 2026-03-13T14:09:10.992Z (2 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-23.10: ruby-optimist
- Homepage: http://manageiq.github.io/optimist/
- Licenses:
- Latest release: 3.0.0-2 (published 3 months ago)
- Last Synced: 2026-03-13T19:24:11.415Z (2 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-20.04: ruby-optimist
- Homepage: http://manageiq.github.io/optimist/
- Licenses:
- Latest release: 3.0.0-2 (published 3 months ago)
- Last Synced: 2026-03-13T20:22:13.713Z (2 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-23.04: ruby-optimist
- Homepage: http://manageiq.github.io/optimist/
- Licenses:
- Latest release: 3.0.0-2 (published 3 months ago)
- Last Synced: 2026-03-11T14:11:30.839Z (2 months 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 3 months ago)
- Last Synced: 2026-03-14T07:16:56.972Z (2 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-22.04: ruby-optimist
- Homepage: http://manageiq.github.io/optimist/
- Licenses:
- Latest release: 3.0.0-2 (published 3 months ago)
- Last Synced: 2026-03-13T13:37:43.616Z (2 months 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 3 months ago)
- Last Synced: 2026-03-13T04:21:16.757Z (2 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
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.444974722005107