The project is in a healthy, maintained state
Small command-line argument parser used by Dorian tools.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 3.1, < 5
 Project Readme

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