Registry / cli / trollop

trollop

JSON →
library2.9.10rbrubygemsunverified

Commandline option parser for Ruby. Deprecated in favor of optimist.

gem install trollop
INSTALL
IMPORT
SIG · TROLLOP
T
trollop
clirubyv2.9.10
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.

Trollop
require 'trollop'

Parse command-line options

require 'trollop' opts = Trollop::options do opt :name, 'Your name', type: :string end puts "Hello, #{opts[:name]}"
Debug
Known issues
breakingDeprecated: renamed to optimist
fix
Switch to the optimist gem
affects: >= 2.9.10
Upgrade
Version history
2.9.10latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
20
Resources
trollop — gem install trollop · libregistry