Sha256: 7f360c3e8c107b923bffa827329ff0ed1ca54b8c11e17c8038d075e1b14348ef
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 Bytes
Contents
require 'optparse' module Feed2Mail class CLI def self.run(args) config = Feed2Mail::Config.new config.load OptionParser.new do |o| o.banner = "Usage: #{File.basename $0} [options]" o.on '-v', '--verbose', 'verbose mode' do |v| config.verbose = v end o.on_tail '-h', '--help', 'show this message' do puts o exit end end.parse! report = Feed2Mail::Report.new config report.update report.mail :from => 'tj+from@a13.fr', :to => 'tj+to@a13.fr' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
feed2mail-0.0.1 | lib/feed2mail/cli.rb |