Module: Pechkin::CLI
- Defined in:
- lib/pechkin/cli.rb
Overview
Command Line parser
Defined Under Namespace
Classes: CLIBuilder
Constant Summary collapse
- DEFAULT_OPTIONS =
Default values for CLI options
{ config_file: '/etc/pechkin/config.yml' }.freeze
Class Method Summary collapse
Class Method Details
.parse(args) ⇒ Object
59 60 61 62 63 64 65 66 67 |
# File 'lib/pechkin/cli.rb', line 59 def parse(args) = OpenStruct.new(DEFAULT_OPTIONS) parser = OptionParser.new do |p| CLIBuilder.new().build(p) end parser.parse(args) end |