lib/reek/cli/version_command.rb in reek-1.3.8 vs lib/reek/cli/version_command.rb in reek-1.4.0

- old
+ new

@@ -1,18 +1,15 @@ require 'reek' +require 'reek/cli/command' module Reek module Cli - # # A command to report the application's current version number. # - class VersionCommand - def initialize(progname) - @progname = progname - end + class VersionCommand < Command def execute(view) - view.output("#{@progname} #{Reek::VERSION}\n") + view.output("#{@parser.program_name} #{Reek::VERSION}\n") view.report_success end end end end