<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -9,11 +9,6 @@ Feature: Reek can be controlled using command-line options
     Then the exit status indicates an error
     And it reports the error &quot;Error: invalid option: --no-such-option&quot;
 
-  Scenario: return non-zero status on missing argument
-    When I run reek -f
-    Then the exit status indicates an error
-    And it reports the error &quot;Error: missing argument: -f&quot;
-
   Scenario: display the current version number
     When I run reek --version
     Then it succeeds
@@ -42,8 +37,5 @@ Feature: Reek can be controlled using command-line options
       Report formatting:
           -a, --[no-]show-all              Show all smells, including those masked by config settings
           -q, --quiet                      Suppress headings for smell-free source files
-          -f, --format FORMAT              Specify the format of smell warnings
-          -c, --context-first              Sort by context; sets the format string to &quot;%m%c %w (%s)&quot;
-          -s, --smell-first                Sort by smell; sets the format string to &quot;%m[%s] %c %w&quot;
 
       &quot;&quot;&quot;</diff>
      <filename>features/options.feature</filename>
    </modified>
    <modified>
      <diff>@@ -3,29 +3,21 @@ require 'reek'
 require 'reek/adapters/report'
 
 module Reek
-    
-  # SMELL: Greedy Module
-  # This creates the command-line parser AND invokes it. And for the
-  # -v and -h options it also executes them. And it holds the config
-  # options for the rest of the application.
-  class Options
 
-    CTX_SORT = '%m%c %w (%s)'
-    SMELL_SORT = '%m[%s] %c %w'
+  class Options
 
     def initialize(argv)
       @argv = argv
       @parser = OptionParser.new
       @quiet = false
       @show_all = false
-      @format = CTX_SORT
       @command = nil
       set_options
     end
 
     def parse
       @parser.parse!(@argv)
-      @command ||= ReekCommand.new(@argv, @quiet, @format, @show_all)
+      @command ||= ReekCommand.new(@argv, @quiet, @show_all)
     end
 
     def set_options
@@ -48,7 +40,7 @@ EOB
         @command = HelpCommand.new(@parser)
       end
       @parser.on(&quot;-v&quot;, &quot;--version&quot;, &quot;Show version&quot;) do
-        @command = VersionCommand.new(@parser)
+        @command = VersionCommand.new(@parser.program_name)
       end
 
       @parser.separator &quot;\nReport formatting:&quot;
@@ -59,19 +51,6 @@ EOB
       @parser.on(&quot;-q&quot;, &quot;--quiet&quot;, &quot;Suppress headings for smell-free source files&quot;) do
         @quiet = true
       end
-      @parser.on('-f', &quot;--format FORMAT&quot;, 'Specify the format of smell warnings') do |arg|
-        @format = arg unless arg.nil?
-      end
-      @parser.on('-c', '--context-first', &quot;Sort by context; sets the format string to \&quot;#{CTX_SORT}\&quot;&quot;) do
-        @format = CTX_SORT
-      end
-      @parser.on('-s', '--smell-first', &quot;Sort by smell; sets the format string to \&quot;#{SMELL_SORT}\&quot;&quot;) do
-        @format = SMELL_SORT
-      end
-    end
-
-    def create_report(sniffers)
-      @quiet ? QuietReport.new(sniffers, @format, @show_all) : FullReport.new(sniffers, @format, @show_all)
     end
   end
 
@@ -86,20 +65,22 @@ EOB
   end
 
   class VersionCommand
-    def initialize(parser)
-      @parser = parser
+    def initialize(progname)
+      @progname = progname
     end
     def execute
-      puts &quot;#{@parser.program_name} #{Reek::VERSION}&quot;
+      puts &quot;#{@progname} #{Reek::VERSION}&quot;
       return EXIT_STATUS[:success]
     end
   end
 
   class ReekCommand
-    def initialize(args, quiet, format, show_all)
+
+    SMELL_FORMAT = '%m%c %w (%s)'
+
+    def initialize(args, quiet, show_all)
       @args = args
       @quiet = quiet
-      @format = format
       @show_all = show_all
     end
 
@@ -108,8 +89,8 @@ EOB
         @args.sniff :
         Reek::Sniffer.new($stdin.to_reek_source('$stdin'))
       rpt = @quiet ?
-        QuietReport.new(sniffer.sniffers, @format, @show_all) :
-        FullReport.new(sniffer.sniffers, @format, @show_all)
+        QuietReport.new(sniffer.sniffers, SMELL_FORMAT, @show_all) :
+        FullReport.new(sniffer.sniffers, SMELL_FORMAT, @show_all)
       puts rpt.report
       return EXIT_STATUS[sniffer.smelly? ? :smells : :success]
     end</diff>
      <filename>lib/reek/adapters/command_line.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a27e570d69cf1b53ef30d0a3cc3615132b9b8238</id>
    </parent>
  </parents>
  <author>
    <name>Kevin Rutherford</name>
    <email>kevin@rutherford-software.com</email>
  </author>
  <url>http://github.com/kevinrutherford/reek/commit/239b159a16bc85001c7ba3d2c00915f0885c1f81</url>
  <id>239b159a16bc85001c7ba3d2c00915f0885c1f81</id>
  <committed-date>2009-11-07T13:22:30-08:00</committed-date>
  <authored-date>2009-11-07T13:22:30-08:00</authored-date>
  <message>Removed options for formatting the smell warnings</message>
  <tree>015ed52144aea82697888791099c7c0a86f9d3eb</tree>
  <committer>
    <name>Kevin Rutherford</name>
    <email>kevin@rutherford-software.com</email>
  </committer>
</commit>
