Registry / cli / clasp-ruby

clasp-ruby

JSON →
library0.23.1rbrubygemsunverified

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

gem install clasp-ruby
INSTALL
IMPORT
SIG · CLASP-RUBY
C
clasp-ruby
clirubyv0.23.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.

CLASP
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 issues

No known issues recorded.

Upgrade
Version history
0.23.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
28
Resources
clasp-ruby — gem install clasp-ruby · libregistry