CrabScout. The best software around.
Search

Slop

Read typed options from a command line.

leejarvis · Everyday tools

GitHub projectOpen source Open on GitHub

How to try it

With Ruby 3.2 available, install slop at version 4.10.1. Parse a fruit name and a numeric count from synthetic arguments.

What we tested

4.10.1. Parse a fruit name and a numeric count from synthetic arguments. The parser returned pear, converted the count to 5, and left no unparsed values.

Reviews

Rate this repo

More to explore

  • Clamp for RubyBuild a Ruby command-line interface with named options.GitHub projectOpen source
  • Docopt for RubyBuild command-line parsers from a usage message.GitHub projectOpen source
  • Dry CLIBuild Ruby command-line tools from a registry of commands.GitHub projectOpen source

Share

What the labels mean

Save to your library