Sha256: 148fdb113ae5bd94402d98e4b6f00192b09c34315c50758676638f5407106d9e
Contents?: true
Size: 571 Bytes
Versions: 1
Compression:
Stored size: 571 Bytes
Contents
module Vedeu class Configuration class << self def configure(args = []) new(args).configure end end def initialize(args = []) @args = args || [] @options = {} end def configure parser = OptionParser.new do |opts| opts.banner = "Usage: #{$PROGRAM_NAME} [options]" opts.on("-1", "--run-once", "Run application once.") do @options[:interactive] = false end end parser.parse!(args) options end private attr_accessor :args, :options end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.25 | lib/vedeu/configuration.rb |