Sha256: 3bbdd93b97ee13ad869ffe412c1f5b15c1cd3a47619d19b40c4785c8ec0bdba8
Contents?: true
Size: 816 Bytes
Versions: 4
Compression:
Stored size: 816 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, :option, :meta] 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
unicoder-1.3.0 | bin/unicoder |
unicoder-1.1.1 | bin/unicoder |
unicoder-1.1.0 | bin/unicoder |
unicoder-1.0.0 | bin/unicoder |