From c4af349157f3e48fc86da5571a0443cce412f686 Mon Sep 17 00:00:00 2001
From: Alex Reisner <alex@alexreisner.com>
Date: Sat, 22 Dec 2012 22:53:51 -0500
Subject: [PATCH] Be more flexible about key part delimiters.

---
 lib/geocoder/cli.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/geocoder/cli.rb b/lib/geocoder/cli.rb
index 536aec09..ab3df3b7 100644
--- a/lib/geocoder/cli.rb
+++ b/lib/geocoder/cli.rb
@@ -14,7 +14,7 @@ module Geocoder
 
         opts.on("-k <key>", "--key <key>",
           "Key for geocoding API (usually optional). Enclose multi-part keys in quotes and separate parts by spaces") do |key|
-          if (key_parts = key.split(' ')).size > 1
+          if (key_parts = key.split(/\s+/)).size > 1
             Geocoder.configure(:api_key => key_parts)
           else
             Geocoder.configure(:api_key => key)
-- 
GitLab