Sha256: dc078fc9365ca104898c93a2a0ea3d1825ec64980289205d18ca1f533f89cf48
Contents?: true
Size: 676 Bytes
Versions: 1
Compression:
Stored size: 676 Bytes
Contents
require 'bitsor' module BitsDealer class CLI attr_accessor :options def initialize(args) self.options = parse_options(args) end def run BitsDealer::REPL.new(options).start end private # @private def parse_options(args) {}.tap do |options| OptionParser.new do |opts| opts.banner = "Usage: bits_dealer [options]" opts.on('--reset', 'Remove your configuration files') do options[:reset] = true end opts.on_tail("-h", "--help", "Show this message") do puts opts exit end end.parse!(args) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bits_dealer-0.1.1 | lib/bits_dealer/cli.rb |