Skip to content
romanrodPublic

About

Get command line arguments within the code easily

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages