Sha256: 405ffddf2868961360311f93b5e96285415e7d44f5838aee317276626be74506
Contents?: true
Size: 674 Bytes
Versions: 5
Compression:
Stored size: 674 Bytes
Contents
#!/usr/bin/env ruby require "optparse" require "zettacode" options = {} OptionParser.new do |opts| opts.banner = "Usage: zettacode [--parse FILENAME]" opts.on("-p", "--parse", "Parse FILENAME") do |p| options[:parse] = p end opts.on("-s", "--scrap", "Scrap RosettaCode URLs") do |s| options[:scrap] = s end opts.on("-v", "--version", "Show version") do |v| options[:version] = v end end.parse! if options[:parse] Zettacode::Parse.call(ARGV.first || "NODATA") elsif options[:scrap] scrap = Zettacode::Scrap.new("config/scrap.yaml") scrap.load_settings scrap.find_langs elsif options[:version] puts "zettacode #{Zettacode::VERSION}" end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
zettacode-0.1.7 | bin/zettacode |
zettacode-0.1.6 | bin/zettacode |
zettacode-0.1.5 | bin/zettacode |
zettacode-0.1.4 | bin/zettacode |
zettacode-0.1.3 | bin/zettacode |