class MultipleMan::Options
Attributes
options[R]
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/multiple_man/cli.rb, line 13 def initialize(*args) @options = { mode: :general, environment_path: 'config/environment' } super end
parse!(args)
click to toggle source
# File lib/multiple_man/cli.rb, line 5 def self.parse!(args) parser = new('Multiple Man') parser.set_opts.parse!(args) parser.options end
Public Instance Methods
set_opts()
click to toggle source
# File lib/multiple_man/cli.rb, line 18 def set_opts on('--seed', 'listen to the seeding queue') do options[:mode] = :seed end on('-e', '--environment-path PATH', 'Set the path to load the web framework (default: config/environment)') do |value| options[:environment_path] = value end end