Registry / cli / clasp-ruby

clasp-ruby

JSON →
library0.23.1rbrubygemsunverified

Command-Line Argument Sorting and Parsing library providing declarative specification of flags and options.

cliutility
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.

require 'clasp'

Parse command-line arguments with flag specifications.

require 'clasp' specs = CLASP.Specifications([ CLASP.Flag('--verbose', aliases: ['-v']) ]) args = CLASP.parse(['--verbose', 'file.txt'], specs) puts args.flags.first.name if args.flags.any?
Debug
Known footguns

No known footguns recorded.

Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
13 hits · last 30 days
gptbot
3
claudebot
3
ahrefsbot
1
amazonbot
1
Resources