bin/weather-report in weather-report-0.3.5 vs bin/weather-report in weather-report-0.3.6
- old
+ new
@@ -12,9 +12,16 @@
opts.banner = 'Usage: weather-report CITY [options]'
opts.separator ""
opts.separator "Common options:"
+ opts.on_tail("-list", "Show city list") do
+ WeatherReport.cities.each do |city|
+ puts city
+ end
+ exit
+ end
+
opts.on_tail("-h", "--help", "Show this message") do
puts opts
exit
end