<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,6 +5,10 @@
 * Improve help output to list shorthand switches, too
 * Investigate and fix deep namespacing (&quot;foo:bar:baz&quot;) issues
 
+== 0.9.8, released 2008-10-20
+
+* Fixed some tiny issues that were introduced lately.
+
 == 0.9.7, released 2008-10-13
 
 * Setting global method options on the initialize method works as expected:</diff>
      <filename>CHANGELOG.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@ require 'rubygems/specification'
 require 'thor/tasks'
 
 GEM = &quot;thor&quot;
-GEM_VERSION = &quot;0.9.7&quot;
+GEM_VERSION = &quot;0.9.8&quot;
 AUTHOR = &quot;Yehuda Katz&quot;
 EMAIL = &quot;wycats@gmail.com&quot;
 HOMEPAGE = &quot;http://yehudakatz.com&quot;</diff>
      <filename>Thorfile</filename>
    </modified>
    <modified>
      <diff>@@ -62,10 +62,6 @@ class Thor
       @_full_opts ||= Options.new((klass.opts || {}).merge(@options))
     end
     
-    def options?
-      @options.kind_of?(Hash) &amp;&amp; !@options.empty?
-    end
-
     def formatted_usage(namespace = false)
       (namespace ? self.namespace + ':' : '') + usage +
         (opts ? &quot; &quot; + opts.formatted_usage : &quot;&quot;)
@@ -75,7 +71,6 @@ class Thor
 
     def parse_args(args)
       return [[], {}] if args.nil?
-      return [args, {}] unless options?
       hash = full_opts.parse(args)
       list = full_opts.non_opts
       [list, hash]</diff>
      <filename>lib/thor/task.rb</filename>
    </modified>
    <modified>
      <diff>@@ -71,6 +71,11 @@ class GlobalOptionsTasks &lt; Thor
     [type, options]
   end
   
+  desc &quot;zoo&quot;, &quot;zoo around&quot;
+  def zoo
+    options
+  end
+  
 end
 
 describe &quot;thor&quot; do
@@ -123,7 +128,13 @@ describe &quot;thor&quot; do
     MyApp.start([&quot;unk&quot;, &quot;hello&quot;]).must == [:unk, [&quot;hello&quot;]]
   end
   
-  it &quot;allows global options to be set on the initialize method&quot; do
+  it &quot;allows global options to be set&quot; do
+    args = [&quot;zoo&quot;, &quot;--force&quot;, &quot;--param&quot;, &quot;feathers&quot;]
+    options = GlobalOptionsTasks.start(args)
+    options.must == { &quot;force&quot;=&gt;true, &quot;param&quot;=&gt;&quot;feathers&quot; }
+  end
+  
+  it &quot;allows global options to be merged with method options&quot; do
     args = [&quot;animal&quot;, &quot;bird&quot;, &quot;--force&quot;, &quot;--param&quot;, &quot;feathers&quot;, &quot;--other&quot;, &quot;tweets&quot;]
     arg, options = GlobalOptionsTasks.start(args)
     arg.must == 'bird'</diff>
      <filename>spec/thor_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 Gem::Specification.new do |s|
   s.name = %q{thor}
-  s.version = &quot;0.9.7&quot;
+  s.version = &quot;0.9.8&quot;
 
   s.required_rubygems_version = Gem::Requirement.new(&quot;&gt;= 0&quot;) if s.respond_to? :required_rubygems_version=
   s.authors = [&quot;Yehuda Katz&quot;]</diff>
      <filename>thor.gemspec</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5c061ccd41f8ed82dfb9ad069489355e49c1371f</id>
    </parent>
  </parents>
  <author>
    <name>Fabien Franzen</name>
    <email>info@atelierfabien.be</email>
  </author>
  <url>http://github.com/wycats/thor/commit/e97df90878a7e0aa65dc2e9a5b00aa91da670b86</url>
  <id>e97df90878a7e0aa65dc2e9a5b00aa91da670b86</id>
  <committed-date>2008-10-24T01:08:54-07:00</committed-date>
  <authored-date>2008-10-24T01:08:54-07:00</authored-date>
  <message>Fixed bug with global options</message>
  <tree>539194976426b0250bc9aefaff13156c6f6efc46</tree>
  <committer>
    <name>Fabien Franzen</name>
    <email>info@atelierfabien.be</email>
  </committer>
</commit>
