Sha256: 4dc97eac3c891054322f14ef3321db9197ca2d3e1f5a7ab5bfbfd1c3524327e1
Contents?: true
Size: 503 Bytes
Versions: 1
Compression:
Stored size: 503 Bytes
Contents
# frozen_string_literal: true require_relative 'parser_builder' module Balboa module CLI class Options def self.parse(*args) new(*args).parse rescue OptionParser::InvalidOption => error $stderr.puts "Error: #{error}" exit end def initialize(argv=[], config={}) @config = config @parser = Balboa::CLI::ParserBuilder.create(argv, config) end def parse @parser.parse! @config end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
balboa-0.1.3 | lib/balboa/cli/options.rb |