Skip to content

A simple command line arguments parser for Ruby

Notifications You must be signed in to change notification settings

chrisledet/args.rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

args.rb

A simple command line arguments parser

Examples

Accessing arguments with args.rb

$ ./bin/args --config config/database.yml --verbose --version 5.1 --options 1 2 3 4 5
args :config
# => 'config/database.yml'

args :verbose, as: :bool
# => true

args :version, as: :float
# => 5.1

args :options, as: :array
# => ['1', '2', '3', '4', '5']

args :unknown
# => nil

About

A simple command line arguments parser for Ruby

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages