Guest User

Untitled

a guest
Jun 25th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.27 KB | None | 0 0
  1. require 'pp'
  2. require 'mixlib/cli'
  3.  
  4. class Foo
  5.   include Mixlib::CLI
  6.  
  7.   option :firstoption,
  8.     :short => '-f FIRSTOPTION',
  9.     :long => '--firstoption FIRSTOPTION',
  10.     :default => 42,
  11.     :description => "the first option"
  12. end
  13.  
  14.  
  15. f = Foo.new
  16.  
  17. pp f.config
Advertisement
Add Comment
Please, Sign In to add comment