Registry / cli / optimist

optimist

JSON →
library3.2.1rbrubygemsunverified

Optimist is a commandline option parser for Ruby that gets out of your way with one line per option.

gem install optimist
INSTALL
IMPORT
SIG · OPTIMIST
O
optimist
clirubyv3.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Optimist
require 'optimist'

Parse command-line options with a simple DSL.

require 'optimist' opts = Optimist::options do opt :name, 'Your name', type: :string end puts "Hello, #{opts[:name]}!"
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.2.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
Amazon
1
Resources
optimist — gem install optimist · libregistry