<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -35,6 +35,8 @@ BANNER
           &quot;Add the given log message when punching in/out&quot;) { |message|  OPTIONS[:message] = message }
   opts.on('--full',
           &quot;Show full output for the command&quot;) { |full|  OPTIONS[:full] = true }
+  opts.on('--short',
+          &quot;Show short output for the command&quot;) { |full|  OPTIONS[:short] = true }
   opts.on(&quot;-h&quot;, &quot;--help&quot;,
           &quot;Show this help message.&quot;) { puts opts; exit }
   opts.parse!(ARGV)
@@ -58,7 +60,7 @@ Punch.load
 commands = {
   'status' =&gt; lambda do |project|
     result = Punch.status(project, OPTIONS)
-    if project.nil? or OPTIONS[:full]
+    if result.is_a?(Hash)
       puts result.to_yaml
     else
       puts result.inspect</diff>
      <filename>bin/punch</filename>
    </modified>
    <modified>
      <diff>@@ -163,8 +163,8 @@ describe 'punch command' do
       run_command('status', @project)
     end
     
-    it 'should output the status as YAML if no project given' do
-      result = 'status data'
+    it &quot;should output the status as YAML if the status data is a Hash&quot; do
+      result = { 'status' =&gt; 'data' }
       Punch.stub!(:status).and_return(result)
       self.should.receive(:puts).with(result.to_yaml)
       run_command('status')
@@ -180,18 +180,14 @@ describe 'punch command' do
       run_command('status', '--full')
     end
     
-    it 'should output the status as YAML if a full option is given' do
-      result = 'status data'
-      Punch.stub!(:status).and_return(result)
-      self.should.receive(:puts).with(result.to_yaml)
-      run_command('status', @project, '--full')
+    it 'should pass a true short option if specified on the command line (with --short)' do
+      Punch.should.receive(:status).with(@project, :short =&gt; true)
+      run_command('status', @project, '--short')
     end
     
-    it 'should output the status as YAML if no project given even if a full option is given' do
-      result = 'status data'
-      Punch.stub!(:status).and_return(result)
-      self.should.receive(:puts).with(result.to_yaml)
-      run_command('status', '--full')
+    it 'should pass a true short option if specified on the command line (with --short) and no project given' do
+      Punch.should.receive(:status).with(nil, :short =&gt; true)
+      run_command('status', '--short')
     end
     
     it 'should not write the data' do</diff>
      <filename>spec/punch_command_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a4fb8b416b591a3f97ed39e028da2863a9e9c259</id>
    </parent>
  </parents>
  <author>
    <name>Yossef Mendelssohn</name>
    <email>ymendel@pobox.com</email>
  </author>
  <url>http://github.com/ymendel/one_inch_punch/commit/de5db99209adfe3c003c0cf509f6d4c43ddc9d26</url>
  <id>de5db99209adfe3c003c0cf509f6d4c43ddc9d26</id>
  <committed-date>2009-06-25T15:13:42-07:00</committed-date>
  <authored-date>2009-06-25T15:13:42-07:00</authored-date>
  <message>Adding short command-line option.

Right now it's for status only, like 'full'.</message>
  <tree>503b663416d9611a19dd52c210f883bf3dfa9bd1</tree>
  <committer>
    <name>Yossef Mendelssohn</name>
    <email>ymendel@pobox.com</email>
  </committer>
</commit>
