Skip to content

romanrod/clipar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clipar

Get command line paramenters on your code easily. Treat them as methods of an object

Installation

Add this line to your application's Gemfile:

gem 'clipar'

And then execute:

$ bundle

Or install it yourself as:

$ gem install clipar

Usage

If you want to pass values to your code from command line like

foo=bar cucumber

You can do this with CLIPar:

require 'clipar'

cli = CLIPar.new
# to get the value of foo
cli.foo
# => "bar"

# to ask if foo param was defined
cli.foo?
# => true

About

Get command line arguments within the code easily

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors