Skip to content

dorianmariecom/dorian-arguments

Repository files navigation

dorian-arguments

Small command-line argument parser used by the Dorian tools.

Install

gem install dorian-arguments

Also included in the aggregate gem:

gem install dorian

Usage

arguments -h

Run arguments -h for generated option details and arguments -v for the installed version.

Notes

  • Use Dorian::Arguments.parse to split positional arguments, existing file paths, and typed options into one struct.

Examples

Parse options in Ruby

require "dorian/arguments"

parsed = Dorian::Arguments.parse(count: :integer, verbose: :boolean)
parsed.arguments
parsed.options.count
parsed.files

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors