lib/mutant/cli.rb in mutant-0.5.16 vs lib/mutant/cli.rb in mutant-0.5.17
- old
+ new
@@ -283,11 +283,11 @@
# @return [undefined]
#
# @api private
#
def use(name)
- require "mutant-#{name}"
+ require "mutant/#{name}"
@strategy = Strategy.lookup(name).new
rescue LoadError
$stderr.puts("Cannot load plugin: #{name.inspect}")
raise
end
@@ -337,10 +337,10 @@
# @api private
#
def add_debug_options(opts)
opts.on('--fail-fast', 'Fail fast') do
@fail_fast = true
- end.on('--version', 'Print mutants version') do |name|
+ end.on('--version', 'Print mutants version') do
puts("mutant-#{Mutant::VERSION}")
Kernel.exit(0)
end.on('-d', '--debug', 'Enable debugging output') do
@debug = true
end.on_tail('-h', '--help', 'Show this message') do