Module: Houki::Options
- Defined in:
- lib/houki/options.rb
Class Method Summary collapse
Class Method Details
.get_options(args) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/houki/options.rb', line 10 def (args) = {} parser = OptionParser.new do |opts| opts. = "Usage: houki [options]" opts.separator "Configuration files:" opts.on "-c", "--config-file FILE", "Use specified configuration file. Default is $HOME/.houki.yml" do |file| [:config_file] = File.(file) end end parser.parse!(args) end |
.parse!(args) ⇒ Object
6 7 8 |
# File 'lib/houki/options.rb', line 6 def parse!(args) (args) end |