Small command-line argument parser used by the Dorian tools.
gem install dorian-argumentsAlso included in the aggregate gem:
gem install dorianarguments -hRun arguments -h for generated option details and arguments -v for the installed version.
- Use
Dorian::Arguments.parseto split positional arguments, existing file paths, and typed options into one struct.
require "dorian/arguments"
parsed = Dorian::Arguments.parse(count: :integer, verbose: :boolean)
parsed.arguments
parsed.options.count
parsed.files