Skip to content
Snippets Groups Projects
Commit 6e85a3d8 authored by Alex Reisner's avatar Alex Reisner
Browse files

Add --proxy option to CLI.

parent ef11425a
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,11 @@ module Geocoder
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment