Registry / cli / micro-optparse

micro-optparse

JSON →
library1.2.1rbrubygemsunverified

A lightweight option parser under 80 lines with strong validations and a clear, easy-to-use syntax.

gem install micro-optparse
INSTALL
IMPORT
SIG · MICRO-OPTPARSE
M
micro-optparse
clirubyv1.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.

MicroOptparse
require 'micro-optparse'

Parses command-line options with a simple DSL.

require 'micro-optparse' options = Parser.new do |p| p.option :name, 'Your name', default: 'World' end.parse! puts "Hello, #{options[:name]}!"
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
micro-optparse — gem install micro-optparse · libregistry