<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -344,7 +344,7 @@ module Clip
     def initialize(short, long, options)
       @short = short
       @long = long
-      @description = options[:desc]
+      @description = options[:desc] || &quot;&quot;
       @default = options[:default]
       @required = options[:required]
       @multi = options[:multi]</diff>
      <filename>lib/clip.rb</filename>
    </modified>
    <modified>
      <diff>@@ -197,6 +197,14 @@ describe Clip do
       end
     end
 
+    it &quot;should work if no description given&quot; do
+      opts = Clip do |o|
+        o.opt 'X', 'no-description'
+      end
+      help = opts.to_s.split(&quot;\n&quot;)
+      help[1].should == &quot;-X  --no-description  &quot;
+    end
+
     it &quot;should print out some sensible usage info for to_s&quot; do
       help = opts(&quot;-s localhost&quot;).to_s.split(&quot;\n&quot;)
       help[0].should match(/Usage/)</diff>
      <filename>spec/clip_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>df6b0ae20f19128004837caa4c0ed4a177721994</id>
    </parent>
  </parents>
  <author>
    <name>Adam Salter</name>
    <email>adam@codebright.net</email>
  </author>
  <url>http://github.com/alexvollmer/clip/commit/67c6ad15a9927a2b6017e66da96899cb4691d191</url>
  <id>67c6ad15a9927a2b6017e66da96899cb4691d191</id>
  <committed-date>2009-10-02T03:30:43-07:00</committed-date>
  <authored-date>2009-10-02T03:30:43-07:00</authored-date>
  <message>- small update (and specs) if no description supplied</message>
  <tree>fd39439aebdc06d12a41bb1545fdf84bea27b1f2</tree>
  <committer>
    <name>Adam Salter</name>
    <email>adam@codebright.net</email>
  </committer>
</commit>
