<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,33 +2,6 @@
 
 require 'optparse'
 
-OptionParser.new do |opts|
-  opts.banner = &quot;Usage: #{File.basename($0)} [path]&quot;
-
-  opts.on(&quot;-h&quot;, &quot;--help&quot;, &quot;Displays this help info&quot;) do
-    puts opts
-    exit 0
-  end
-
-  begin
-    opts.parse!(ARGV)
-  rescue OptionParser::ParseError =&gt; e
-    warn e.message
-    puts opts
-    exit 1
-  end
-end
-
-if ARGV.empty?
-  abort &quot;Please specify the directory to depify, e.g. `#{File.basename($0)} .'&quot;
-elsif !File.exists?(ARGV.first)
-  abort &quot;`#{ARGV.first}' does not exist.&quot;
-elsif !File.directory?(ARGV.first)
-  abort &quot;`#{ARGV.first}' is not a directory.&quot;
-elsif ARGV.length &gt; 1
-  abort &quot;Too many arguments; please specify only the directory to capify.&quot;
-end
-
 def unindent(string)
   indentation = string[/\A\s*/]
   string.strip.gsub(/^#{indentation}/, &quot;&quot;)
@@ -116,6 +89,39 @@ def create_file(file, content)
   end
 end
 
+
+OptionParser.new do |opts|
+  opts.banner = &quot;Usage: #{File.basename($0)} [path]&quot;
+
+  opts.on(&quot;-c&quot;, &quot;Install ~/.caprc file&quot;) do
+    create_file(File.join(ENV['HOME'], '.caprc'), caprc)
+    exit 0
+  end
+  
+  opts.on(&quot;-h&quot;, &quot;--help&quot;, &quot;Displays this help info&quot;) do
+    puts opts
+    exit 0
+  end
+  
+  begin
+    opts.parse!(ARGV)
+  rescue OptionParser::ParseError =&gt; e
+    warn e.message
+    puts opts
+    exit 1
+  end
+end
+
+if ARGV.empty?
+  abort &quot;Please specify the directory to depify, e.g. `#{File.basename($0)} .'&quot;
+elsif !File.exists?(ARGV.first)
+  abort &quot;`#{ARGV.first}' does not exist.&quot;
+elsif !File.directory?(ARGV.first)
+  abort &quot;`#{ARGV.first}' is not a directory.&quot;
+elsif ARGV.length &gt; 1
+  abort &quot;Too many arguments; please specify only the directory to capify.&quot;
+end
+
 create_file(File.join(ENV['HOME'], '.caprc'), caprc)
 
 base = ARGV.shift</diff>
      <filename>bin/depify</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5c74209b23c0062689ea5ebe06723be9da3ad318</id>
    </parent>
  </parents>
  <author>
    <name>Mike Bailey</name>
    <email>mike@bailey.net.au</email>
  </author>
  <url>http://github.com/mbailey/deprec/commit/0eca8b9b4ba89fb6a1ecca9f9e9ce939e64c1c07</url>
  <id>0eca8b9b4ba89fb6a1ecca9f9e9ce939e64c1c07</id>
  <committed-date>2009-03-16T22:45:00-07:00</committed-date>
  <authored-date>2009-03-16T22:45:00-07:00</authored-date>
  <message>Added option to create ~/.caprc file.

    depify -c</message>
  <tree>90f8388fb5365957500abe1593fceeedda5d284c</tree>
  <committer>
    <name>Mike Bailey</name>
    <email>mike@bailey.net.au</email>
  </committer>
</commit>
