Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add --proxy option to CLI.

  • Loading branch information...
commit 6e85a3d8329c55bd414f57523970d9687fd199fd 1 parent ef11425
@alexreisner alexreisner authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/geocoder/cli.rb
View
5 lib/geocoder/cli.rb
@@ -22,6 +22,11 @@ def self.run(args, out = STDOUT)
Geocoder::Configuration.language = language
end
+ opts.on("-p <proxy>", "--proxy <proxy>",
+ "HTTP proxy server to use (not including 'http://')") do |proxy|
+ Geocoder::Configuration.http_proxy = proxy
+ end
+
opts.on("-s <service>", Geocoder.street_lookups, "--service <service>",
"Geocoding service: #{Geocoder.street_lookups * ', '}") do |service|
Geocoder::Configuration.lookup = service.to_sym
Please sign in to comment.
Something went wrong with that request. Please try again.