The Ruby Toolbox - Know your options!

slop

13.64
A DSL for gathering options and parsing command line flags
 Popularity
Downloads
57,775,681
Stars
872
Forks
57
Watchers
20

highline

11.5
A high-level IO library that provides validation, type conversion, and more for command-line interfaces. HighLine also includes a complete menu system that can crank out anything from simple list selection to complete shells with just minutes of work.
 Popularity
Downloads
48,027,399
Stars
970
Forks
120
Watchers
26
 Releases
Total releases
59
First release
Latest release

trollop

8.21
Trollop 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.
 Popularity
Downloads
17,852,530

mixlib-cli

5.52
A simple mixin for CLI interfaces, including option parsing
 Popularity
Downloads
11,999,989

cocaine

4.55
A small library for doing (command) lines
 Popularity
Downloads
18,416,679
Stars
793
Forks
56
Watchers
47

gli

3.84
Build command-suite CLI apps that are awesome. Bootstrap your app, add commands, options and documentation while maintaining a well-tested idiomatic command-line app
 Popularity
Downloads
8,355,594
 Releases
Total releases
72
First release
Latest release

commander

1.44
The complete solution for Ruby command-line executables. Commander bridges the gap between other terminal related libraries you know and love (OptionParser, HighLine), while providing many new features, and an elegant API.
 Popularity
Downloads
5,321,018
Stars
500
Forks
47
Watchers
15

clamp

1.36
Clamp provides an object-model for command-line utilities. It handles parsing of command-line options, and generation of usage help.
 Popularity
Downloads
5,244,378
Stars
314
Forks
41
Watchers
11

choice

0.86
Choice is a simple little gem for easily defining and parsing command line options with a friendly DSL.
 Popularity
Downloads
3,384,217
Stars
168
Forks
21
Watchers
6

cri

0.78
Cri allows building easy-to-use command-line interfaces with support for subcommands.
 Popularity
Downloads
3,199,460
Stars
65
Forks
14
Watchers
5

docopt

0.36
Isn't it awesome how `optparse` and other option parsers generate help and usage-messages based on your code?! Hell no! You know what's awesome? It's when the option parser *is* generated based on the help and usage-message that you write in a docstring! That's what docopt does!
 Popularity
Downloads
790,483
Stars
424
Forks
34
Watchers
23

methadone

0.31
Methadone provides a lot of small but useful features for developing a command-line app, including an opinionated bootstrapping process, some helpful cucumber steps, and some classes to bridge logging and output into a simple, unified, interface
 Popularity
Downloads
344,760
Stars
514
Forks
50
Watchers
8

cmdparse

0.21
cmdparse provides classes for parsing (possibly nested) commands on the command line; command line options themselves are parsed using optparse.
 Popularity
Downloads
898,902
Stars
13
Forks
2
Watchers
5

OptionParser

0.05
A flexible command line option parser.
 Popularity
Downloads
113,494

getopt

0.04
The getopt library provides two different command line option parsers. They are meant as easier and more convenient replacements for the command line parsers that ship as part of the Ruby standard library. Please see the README for additional comments.
 Popularity
Downloads
140,356
Stars
9
Forks
1
Watchers
1
 Releases
Total releases
17
First release
Latest release

clap

0.04
Clap is a small library that can be bundled with your command line application. It covers the simple case of executing code based on the flags or parameters passed.
 Popularity
Downloads
32,113
Stars
88
Forks
6
Watchers
4

optitron

0.03
Sensible options parsing
 Popularity
Downloads
64,512

acclaim

0.03
Command-line option parser and command interface.
 Popularity
Downloads
138,508
Stars
7
Forks
0
Watchers
1
 Releases
Total releases
21
First release
Latest release

micro-optparse

0.03
This is an lightweight option parser, which is less than 80 lines short. It has strong validations and a short, clear and easy to use syntax. Feel free to copy all 80 lines (55 lines without validations / empty lines) into your script rather installing the gem.
 Popularity
Downloads
33,601
Stars
37
Forks
9
Watchers
2

quickl

0.02
Quickl helps you creating commandline ruby programs. From simple commands with options to complex delegators with subcommands, global and local options.
 Popularity
Downloads
43,097
Stars
49
Forks
0
Watchers
2

config_parser

0.02
Parse command-line options into a configuration hash
 Popularity
Downloads
33,664

getoptions

0.01
Yet another command line option parser in Ruby, based on Perl's Getopt::Long module.
 Popularity
Downloads
15,727
 Releases
Total releases
3
First release
Latest release

arg0

0.0
It's just here to handle arguments provided to Application. Mainly optional via switches. Currently handles plain-text Console arguments.
 Popularity
Downloads
6,784
Stars
1
Forks
1
Watchers
1