<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -15,7 +15,7 @@ class DomainFinder::Bin
       domain-finder command [options]
 
     Examples:
-      domain-finder ...
+      domain-finder auction
 
     Further help:
       domain-finder commands         # list all available commands
@@ -30,21 +30,29 @@ doco
 Usage: #{ script_name } auction
 
     Options:
-      NONE YET
+      -d, --dates         Set of dates to use in search
 
     Summary:
       Display available auction domains
 doco
   end
-  def auction
+  def auction *args
     begin
-      default_date      = ( Date.today - 14 ).strftime(&quot;%m-%d-%Y&quot;)
-      puts &quot;Searching google ...&quot;
-      one_google_result = Google.search(%{&quot;Auction Date&quot; #{default_date} site:whois.domaintools.com}).first
+      options = { :dates =&gt; [Date.today - 14] }
+      opts = OptionParser.new do |opts|
+        opts.on('-d','--dates DATE'){ |d| options[:dates] = DateRange.parse(d) }
+      end
+      opts.parse! args
+
+      puts &quot;Searching google ... [#{%{&quot;Auction Date&quot; #{ options[:dates].join(' OR ') } site:whois.domaintools.com}}]&quot;
+      one_google_result = Google.search(%{&quot;Auction Date&quot; #{ options[:dates].join(' OR ') } site:whois.domaintools.com}).first
+
       puts &quot;Getting domains ...&quot;
       auction_domains   = DomainTools.auction_domains( open(one_google_result.cached) )
-      puts &quot;Checking domain availability ...&quot;
+      
+      puts &quot;Checking domain availability ... [#{auction_domains.join(',')}]&quot;
       available_domains = Domain.available? *auction_domains
+      
       unless available_domains.empty?
         puts &quot;\nAvailable Domains:\n------------------&quot;
         available_domains.sort.each do |domain|</diff>
      <filename>lib/domain-finder/bin.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,12 @@
 require 'date'
 
+# Change default Date#to_s format
+class Date
+  def to_s
+    self.strftime '%m-%d-%Y'
+  end
+end
+
 # Simple class for helping to parse string sets of dates and date ranges
 class DateRange
 </diff>
      <filename>lib/domain-finder/daterange.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>de7927625f742a32332f49aa70562ef70f824b64</id>
    </parent>
  </parents>
  <author>
    <name>remi</name>
    <email>remi@remitaylor.com</email>
  </author>
  <url>http://github.com/remi/domain-finder/commit/5359b753fdd6dee97d74963b4eec14745cf015e6</url>
  <id>5359b753fdd6dee97d74963b4eec14745cf015e6</id>
  <committed-date>2008-06-14T16:24:08-07:00</committed-date>
  <authored-date>2008-06-14T16:24:08-07:00</authored-date>
  <message>added ./bin/domain-finder auction --date 01-31-2008 option for passing date ranges into auction (it'll add the dates to the google query with OR logic)</message>
  <tree>6704b4a42dd1e1faadf21711159d70138dba3f08</tree>
  <committer>
    <name>remi</name>
    <email>remi@remitaylor.com</email>
  </committer>
</commit>
