Module: Ripl::Profiles::Runner

Defined in:
lib/ripl/profiles.rb

Instance Method Summary collapse

Instance Method Details

#parse_option(option, argv) ⇒ Object

add command line option



59
60
61
62
63
64
65
# File 'lib/ripl/profiles.rb', line 59

def parse_option( option, argv )
  if option =~ /(?:-p|--profile)=?(.*)/
    Ripl::Profiles.load( ($1.empty? ? argv.shift.to_s : $1).split(':') )
  else
    super
  end
end