<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -16,7 +16,7 @@ class PastiePacker
   def do_pack
     self.contents = self.path_to_string(FileUtils.pwd)
     if contents &amp;&amp; !contents.empty?
-      add_header(File.basename(FileUtils.pwd))
+      add_header(File.basename(FileUtils.pwd)) unless no_header?
       do_paste
     end
   end
@@ -24,7 +24,7 @@ class PastiePacker
   def do_pack_files(files)
     self.contents = self.files_to_string(files)
     if contents &amp;&amp; !contents.empty?
-      add_header
+      add_header unless no_header?
       do_paste
     end
   end</diff>
      <filename>lib/pastiepacker/command.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,12 +4,14 @@ class PastiePacker
 
   def private?; @private; end
   def to_stdout?; @to_stdout; end
+  def no_header?; @no_header; end
 
   def parse_options(args)
     @private = false
     @format  = &quot;ruby&quot;
     @extra_message = nil
     @to_stdout = false
+    @no_header = false
 
     OptionParser.new do |opts|
       opts.banner = &lt;&lt;BANNER
@@ -42,6 +44,10 @@ BANNER
       opts.on(&quot;-s&quot;, &quot;--stdout&quot;,
               &quot;Prints packed pasties instead of posting&quot;,
               &quot;Default: false&quot;) { |x| @to_stdout = x }
+      opts.on(&quot;-H&quot;, &quot;--no-header&quot;,
+              &quot;Prevents placing pastiepacker promotion in pasties&quot;,
+              &quot;That is, no 'about:' section is added to the top of pasties&quot;,
+              &quot;Default: false&quot;) { |x| @no_header = x }
       opts.on(&quot;-h&quot;, &quot;--help&quot;,
               &quot;Show this help message.&quot;) { puts opts; exit }
       self.args = opts.parse!(args)</diff>
      <filename>lib/pastiepacker/options.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@ class PastiePacker
     ruby ruby_on_rails sql
     shell-unix-generic
   )
-  
+
   def do_paste
     if to_stdout?
       output_stream.puts contents
@@ -13,7 +13,7 @@ class PastiePacker
       url = API.new.paste contents, format, private?
     end
   end
-  
+
   class API
     PASTIE_URI = 'pastie.caboo.se'
 
@@ -44,10 +44,10 @@ class PastiePacker
 
   class Error &lt; StandardError; end
   class InvalidParser &lt; StandardError; end
-  
+
 end
 
-# 
+#
 # irb(main):002:0&gt; y = `file ~/Pictures/ryandavis2.jpg README.txt`
 # =&gt; &quot;/Users/nicwilliams/Pictures/ryandavis2.jpg: JPEG image data, JFIF standard 1.01\nREADME.txt:                                 ASCII English text\n&quot;
 # irb(main):003:0&gt; YAML.load(y)</diff>
      <filename>lib/pastiepacker/upload.rb</filename>
    </modified>
    <modified>
      <diff>@@ -55,6 +55,17 @@ class TestApp &lt; Test::Unit::TestCase
       pastie.do_pack
     end
   end
+  
+  def test_pack_but_no_header
+    pastie = PastiePacker.new
+    pastie.expects(:no_header?).returns(true)
+    PastiePacker::API.any_instance.expects(:paste).
+      with($complete_pastie, nil, nil).
+      returns(&quot;http://pastie.caboo.se/123456&quot;)
+    FileUtils.cd base_folder do
+      pastie.do_pack
+    end
+  end
 
   def test_unpack_within_current_folder
     PastiePacker.any_instance.expects(:fetch_pastie).</diff>
      <filename>test/test_app.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e2aff1060b647fffdc5f6412e822562288bd914f</id>
    </parent>
  </parents>
  <author>
    <name>Dr Nic Williams</name>
    <email>drnicwilliams@gmail.com</email>
  </author>
  <url>http://github.com/drnic/pastie-packer/commit/506443b3e5fc28278aec360019fa37fa411c1c16</url>
  <id>506443b3e5fc28278aec360019fa37fa411c1c16</id>
  <committed-date>2008-04-05T00:48:12-07:00</committed-date>
  <authored-date>2008-04-05T00:48:12-07:00</authored-date>
  <message>-H/--no-header stops the inclusion of the about: section in pasties</message>
  <tree>2e424eb59529a5c183d8c21de2b2ba2d57104f57</tree>
  <committer>
    <name>Dr Nic Williams</name>
    <email>drnicwilliams@gmail.com</email>
  </committer>
</commit>
