Sha256: bd1e0d8f04913f3c7af160061cb90149f074cf4a0d7591efe7af91cc7b81ef6b
Contents?: true
Size: 800 Bytes
Versions: 1
Compression:
Stored size: 800 Bytes
Contents
#!/usr/bin/env ruby require_relative "../lib/unicoder" require "rationalist" args = Rationalist.parse command = args[:_][0] identifier = args[:_][1] KNOWN_OPTIONS = [:version, :help, :verbose, :format, :gzip] options = args.select { |option,| KNOWN_OPTIONS.include? option } if options.has_key?(:version) puts "unicoder #{Unicoder::VERSION}" elsif options.has_key?(:help) puts <<USAGE_INSTRUCTIONS USAGE unicoder fetch <data_identifier> unicoder build <builder_name> <output_file> DATA FILE IDENTIFIERS … BUILDERS … USAGE_INSTRUCTIONS else case command when "fetch" Unicoder::Downloader.fetch(identifier, **options) when "build" Unicoder::Builder.build(identifier, **options) else raise ArgumentError, "Unknown unicoder command!" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unicoder-0.1.0 | bin/unicoder |