Sha256: 8877e9ea8a00579cdc0dbcadabf12d197cbd8d645347d2843fe39b0608f45206
Contents?: true
Size: 529 Bytes
Versions: 2
Compression:
Stored size: 529 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File::join(File::dirname(File::dirname(__FILE__)), "lib")) require 'meteo/meteo_cli' params = [] units = "imperial" index = 0 while index < ARGV.size do param = ARGV[index] if param =~ /--units=/ or param =~ /-u=/ units = ARGV[index][ARGV[index].index("=")+1..-1] elsif param =~ /--units/ or param =~ /-u/ units = ARGV[index+1] index = index + 1 else params << param end index = index + 1 end MeteoCLI.start ["quote", "--units=#{units}", "#{params.join(' ')}"]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
meteo-1.0.2 | bin/meteo |
meteo-1.0.1 | bin/meteo |