<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -21,6 +21,7 @@ module YARD
             return false if gen.respond_to?(:visibility) &amp;&amp; !visibilities.include?(gen.visibility) 
           end
         ]
+        @files = []
         @visibilities = [:public]
         @reload = true
         @generate = true
@@ -80,8 +81,6 @@ module YARD
             self.files &lt;&lt; file
           end
         end
-        
-        self.files = ['lib/**/*.rb'] if self.files.empty?
       end
       
       def optparse(*args)
@@ -208,6 +207,7 @@ module YARD
         
         # Last minute modifications
         parse_files(*args) unless args.empty?
+        self.files = ['lib/**/*.rb'] if self.files.empty?
         self.visibilities.uniq!
         options[:serializer] ||= Serializers::FileSystemSerializer.new(serialopts)
       end</diff>
      <filename>lib/yard/cli/yardoc.rb</filename>
    </modified>
    <modified>
      <diff>@@ -68,4 +68,9 @@ describe YARD::CLI::Yardoc do
     @yardoc.files.should == %w( file1 file2 )
     @yardoc.options[:files].should == %w( a.txt b.txt )
   end
+  
+  it &quot;should accept no params and parse lib/**/*.rb&quot; do
+    @yardoc.optparse
+    @yardoc.files.should == %w( lib/**/*.rb )
+  end
 end
\ No newline at end of file</diff>
      <filename>spec/cli/yardoc_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>eb287b9fe15cc9de68738f685ba3a54210e3e6ab</id>
    </parent>
  </parents>
  <author>
    <name>Loren Segal</name>
    <email>lsegal@soen.ca</email>
  </author>
  <url>http://github.com/lsegal/yard/commit/fa89cb6167cc309a20c42f2527faa30e797707ef</url>
  <id>fa89cb6167cc309a20c42f2527faa30e797707ef</id>
  <committed-date>2009-07-08T11:32:25-07:00</committed-date>
  <authored-date>2009-07-08T11:32:25-07:00</authored-date>
  <message>Fix yardoc source file parsing bug when no arguments are specified</message>
  <tree>595217ed07774c5537a3b8d08ab5851ae48de213</tree>
  <committer>
    <name>Loren Segal</name>
    <email>lsegal@soen.ca</email>
  </committer>
</commit>
