Registry / cli / subcommand

subcommand

JSON →
library1.0.8rbrubygemsunverified

Subcommand and alias facility (wrapping OptionParser) for command line programs with elegant help printing.

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 'subcommand'

Define and parse a simple subcommand

require 'subcommand' Subcommand::Command.new('greet') { |opts| puts "Hello, #{opts[:name]}" }.parse(['--name', 'World'])
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
0 hits · last 30 days

No traffic data recorded yet.

Resources