Slop
Read typed options from a command line.
leejarvis · Everyday tools
GitHub projectOpen source Open on GitHubHow 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 repoMore 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