A summary of data about the Ruby ecosystem.

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

hacktoberfest

Keywords from Contributors

rubygems activerecord activejob mvc rubocop code-formatter static-code-analysis rack sidekiq rspec

Last synced: about 1 hour ago
JSON representation

Repository metadata

Optimist is a commandline option parser for Ruby that just gets out of your way.

README.md

optimist

http://manageiq.github.io/optimist/

Gem Version
CI

Documentation

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


GitHub Events

Total
Last Year

Committers metadata

Last synced: about 7 hours ago

Total Commits: 319
Total Committers: 39
Avg Commits per committer: 8.179
Development Distribution Score (DDS): 0.771

Commits in past year: 7
Committers in past year: 4
Avg Commits per committer in past year: 1.75
Development Distribution Score (DDS) in past year: 0.714

Name Email 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
renovate[bot] 2****] 4
Peter Goldstein p****n@g****m 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
Olle Jonsson o****n@a****m 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
Yuri Zubov y****v@c****o 1
Will Fitzgerald w****d@p****m 1
Tuomas Kareinen t****e@g****m 1
Prasanna.Natarajan p****a@n****n 1
and 9 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 109
Total pull requests: 131
Average time to close issues: 7 months
Average time to close pull requests: 3 months
Total issue authors: 39
Total pull request authors: 24
Average comments per issue: 1.94
Average comments per pull request: 2.11
Merged pull request: 112
Bot issues: 59
Bot pull requests: 6

Past year issues: 42
Past year pull requests: 7
Past year average time to close issues: about 2 months
Past year average time to close pull requests: 1 day
Past year issue authors: 1
Past year pull request authors: 4
Past year average comments per issue: 0.07
Past year average comments per pull request: 0.29
Past year merged pull request: 6
Past year bot issues: 42
Past year bot pull requests: 3

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/ManageIQ/optimist

Top Issue Authors

  • mend-bolt-for-github[bot] (58)
  • nanobowers (7)
  • Fryguy (3)
  • rlpowell (2)
  • NathanZook (2)
  • rubyFeedback (2)
  • igor-raits (2)
  • ioquatix (2)
  • Mr-Tao (1)
  • HerbCSO (1)
  • bcthomas (1)
  • KINGSABRI (1)
  • hansuiloe (1)
  • renovate[bot] (1)
  • jaganaath (1)

Top Pull Request Authors

  • kbrock (45)
  • Fryguy (30)
  • nanobowers (19)
  • renovate[bot] (5)
  • akhoury6 (4)
  • NathanZook (4)
  • petergoldstein (3)
  • okuramasafumi (2)
  • olleolleolle (2)
  • orien (2)
  • jrafanie (2)
  • metcalf (1)
  • matthewcummings (1)
  • npras (1)
  • Solistra (1)

Top Issue Labels

  • Mend: dependency security vulnerability (58)
  • bug (11)
  • help wanted (11)
  • enhancement (7)
  • question (2)
  • technical debt (1)
  • Mend: dependency dashboard (1)

Top Pull Request Labels

  • enhancement (17)
  • test (13)
  • dependencies (12)
  • developer (5)
  • documentation (3)
  • bug (3)
  • technical debt (2)
  • cleanup (2)
  • refactoring (1)
  • wip (1)
  • help wanted (1)

Package metadata

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 over 1 year ago)
  • Last Synced: 2026-11-17T14:02:52.164Z (about 7 hours ago)
  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 137,708,647 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 almost 7 years ago)
  • Last Synced: 2026-11-17T14:02:53.526Z (about 7 hours ago)
  • Versions: 32
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 64,972,557 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 over 1 year ago)
  • Last Synced: 2026-11-16T19:30:42.013Z (1 day ago)
  • Versions: 5
  • Dependent Packages: 137
  • Dependent Repositories: 3,701
  • Downloads: 137,658,664 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 almost 7 years ago)
  • Last Synced: 2026-11-16T19:30:41.983Z (1 day ago)
  • Versions: 32
  • Dependent Packages: 814
  • Dependent Repositories: 13,918
  • Downloads: 64,967,346 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 over 1 year ago)
  • Last Synced: 2026-11-16T19:30:44.000Z (1 day ago)
  • Versions: 11
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 1.622%
    • Average: 4.057%
    • Dependent packages count: 6.492%
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 over 1 year ago)
  • Last Synced: 2026-11-16T19:30:43.536Z (1 day 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.04: ruby-optimist

  • Homepage: http://manageiq.github.io/optimist/
  • Licenses: mit
  • Latest release: 3.0.0-2 (published 9 months ago)
  • Last Synced: 2026-03-06T16:02:59.274Z (9 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
pkgsrc-netbsd-x86_64-10.1-all: devel/ruby-optimist

Commandline option parser for Ruby

  • Homepage: https://github.com/ManageIQ/optimist
  • Documentation: https://pkgsrc.se/devel/ruby-optimist
  • Licenses: mit
  • Latest release: 3.0.1 (published 8 months ago)
  • Last Synced: 2026-07-28T15:04:17.302Z (4 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: mit
  • Latest release: 3.0.0-2 (published 9 months ago)
  • Last Synced: 2026-03-13T20:22:13.713Z (8 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: mit
  • Latest release: 3.0.0-2 (published 9 months ago)
  • Last Synced: 2026-03-13T13:37:43.616Z (8 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: mit
  • Latest release: 3.0.0-2 (published 9 months ago)
  • Last Synced: 2026-03-13T04:21:16.757Z (8 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: mit
  • Latest release: 3.1.0-2 (published 9 months ago)
  • Last Synced: 2026-10-25T15:29:53.707Z (23 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: mit
  • Latest release: 3.0.0-2 (published 9 months ago)
  • Last Synced: 2026-08-09T03:04:35.473Z (3 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: mit
  • Latest release: 3.0.0-2 (published 9 months ago)
  • Last Synced: 2026-10-27T04:28:15.912Z (22 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-24.10: ruby-optimist

  • Homepage: https://manageiq.github.io/optimist/
  • Licenses: mit
  • Latest release: 3.1.0-1 (published 9 months ago)
  • Last Synced: 2026-03-13T12:14:56.429Z (8 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: mit
  • Latest release: 3.0.0-2 (published 9 months ago)
  • Last Synced: 2026-03-13T19:24:11.415Z (8 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%

Dependencies

optimist.gemspec rubygems
  • chronic >= 0 development
  • manageiq-style >= 0 development
  • minitest ~> 5.4.3 development
  • rake >= 10.0 development
.github/workflows/ci.yaml actions
  • actions/checkout v2 composite
  • ruby/setup-ruby v1 composite
Gemfile rubygems

Score: 30.54318817692307