Registry / cli / optiflag

optiflag

JSON →
library0.6.5rbrubygemsunverified

An embeddable DSL library for declaring and using command-line options/flags in any Ruby program.

gem install optiflag
INSTALL
IMPORT
SIG · OPTIFLAG
O
optiflag
clirubyv0.6.5
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.

OptiFlag
require 'optiflag'

Define and parse a command-line flag.

require 'optiflag' module MyFlags extend OptiFlag::Flagset flag 'name' end options = MyFlags.parse_command_line(['--name', 'John']) puts options.flag_values.name
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.6.5latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
optiflag — gem install optiflag · libregistry